作业帮 > 综合 > 作业

matlab的程序模拟出的曲线模型

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/08 12:43:40
matlab的程序模拟出的曲线模型
>> x1=[1,2,3,1,2,3,1,2,3];
>> y1=[0.21106,0.10947,0.13706,0.19387,0.12648,0.16145,0.2015,0.12038,0.18317];
>> x2=[1,2,3,1,2,3,1,2,3];
>>
>> y2=[0.23113,0.12085,0.11503,0.12071,0.42026,0.10502,0.35515,0.14595,0.076442];
>> x3=[1,2,3,1,2,3,1,2,3];
>> y3=[0.49078,0.49144,0.48666,0.4835,0.50356,0.48898,0.49214,0.49524,0.49714];
>> x4=[1,2,3,1,2,3,1,2,3];
>> y4=[2.287,2.5185,2.3444,2.598,2.5588,2.451,2.3725,2.3725,2.5778];
>> x5=[1,2,3,1,2,3,1,2,3];
>> y5=[318.27,331.05,260.23,306.42,284.56,253.01,298.62,257.04,364.56];
>> plot(x1,y1;x2,y2;x3,y3;x4,y4;x5,y5);
plot(x1,y1;x2,y2;x3,y3;x4,y4;x5,y5);
|
Error:Expression or statement is incorrect--possibly unbalanced (,{,or [.
我只是初学matlab,望请指教!
最后画的时候函数格式错误,只需这样改下就可以了,
plot(x1,y1,x2,y2,x3,y3,x4,y4,x5,y5)