MATLAB Error using ==> plot Vectors must be the same lengths.
来源:百度知道 编辑:UC知道 时间:2024/05/05 23:48:38
text(-5,2,'y=(2*x+1)/(x-3)');
hold on;
x1=-20:0.1:-3;
y1=(2*x+1)./(x-3);
x2=-3:0.01:1;
y2=(2*x+1)./(x-3);
x3=1:0.001:5;
y3=(2*x+1)./(x-3);
x4=5:0.01:9;
y4=(2*x+1)./(x-3);
x5=9:0.1:20;
y5=(2*x+1)./(x-3);
x=[x1,x2,x3,x4,x5];
y=[y1,y2,y3,y4,y5];
plot(x,y);
axis([-20 20 -1000 1000])
请问要如何修改?
hold on;
x1=-20:0.1:-3;
y1=(2*x+1)./(x-3);
x2=-3:0.01:1;
y2=(2*x+1)./(x-3);
x3=1:0.001:5;
y3=(2*x+1)./(x-3);
x4=5:0.01:9;
y4=(2*x+1)./(x-3);
x5=9:0.1:20;
y5=(2*x+1)./(x-3);
x=[x1,x2,x3,x4,x5];
y=[y1,y2,y3,y4,y5];
plot(x,y);
axis([-20 20 -1000 1000])
请问要如何修改?
晕,我受不了了。。你那x是哪儿来的?摆明了是x1,x2,x3,x4,x5...
o(∩_∩)o 你好搞哦~~~~建议你还是学一学基础语法再做这东西吧,另外矩阵不掌握也是学不好的
matlab 7 error starting desktop
matlab中出现??? Error while evaluating uicontrol Callback.
插U盘显示Command Get_Disk_Status Error!!
matlab??
装了MATLAB后在打开时提示error starting desktop 的错误是什么原因 ??
U盘DEVICE ERROR CODE : 0x0406错误提示
主板出现cmos checksum error,按f1进入后u盘认不出,换了电池也一样
插入u盘时电脑便不时出现提示runtime error
用U盾牌跳reader pcsc driver error错误,高分求助!!
matlab下载