The plot() function can plot vectors in MATLAB. It can also customize the plot by adding labels and titles. We can also plot multiple vectors using it.
向量x、y的长度不一样,你看看workspace中x、y的长度,可能是你的final函数的问题
从上面看,t长10000,A1长10004,D1长10004,则plot(t,A1),plot(t,D1)两句都存在这个问题,可这样改:plot(t,A1(1:10000)),plot(t,D1(1:10000))
HELP! Error using plot Vectors must be the same... Learn more about vector, vectors must be the same length, error, matlab, vectors error, plot, plot error, fourier MATLAB, Control System Toolbox, Signal Processing Toolbox, Symbolic Math Toolbox
plot(n,cos)中要求n的大小与cos的大小一致,你先看看n和cos的大小都是多少,然后把两个大小改一致就行。
the (X,Y,S) triples, where the X's and Y's are vectors or matrices and the S's are strings. For example, plot(X,Y,'y-',X,Y,'go') plots the data twice, with a solid yellow line interpolating green circles at the data points. ...
从提示看,你的plot第一项与第二项个数不相等,改下就行了
if else语句用法不对 function y=zhe15(x)本函数实现国际通用的PCM量化μ律15特性近似 x为输入的序列,变换后的值赋给序列 y x=x/max(x); %求出序列的最大值,并同时归一化 z=sign(x); %求得每一序列值的符号 x=abs(x); %求序列的绝对值 for i=1:length(x)if ((x(i)>...
调换一个下f=那行和t=那行的位置试试
你的w是1×401维的,而y(1,:)是1×400维,所以出错了。建议修改w,比如w=0.05:0.05:20;或者w=0:0.05:19.95;具体需要你仔细看一下了。你好,你的问题我已经回答,如有疑问请追问,若满意请采纳哦O(∩_∩)O~