Attempted to access a(:,2); index out of bounds because size(a)=[950,1].>> a=load('E:\MATLAB\R2009a\work\test4_1.dat');a=a(:,3)/33.3380;b=a(:,2)/45;plot(a,b);hold off

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 00:28:37
Attemptedtoaccessa(:,2);indexoutofboundsbecausesize(a)=[950,1].>>a=load(''E:\MATLAB\R2009a\work\test4

Attempted to access a(:,2); index out of bounds because size(a)=[950,1].>> a=load('E:\MATLAB\R2009a\work\test4_1.dat');a=a(:,3)/33.3380;b=a(:,2)/45;plot(a,b);hold off
Attempted to access a(:,2); index out of bounds because size(a)=[950,1].
>> a=load('E:\MATLAB\R2009a\work\test4_1.dat');
a=a(:,3)/33.3380;
b=a(:,2)/45;
plot(a,b);
hold off

Attempted to access a(:,2); index out of bounds because size(a)=[950,1].>> a=load('E:\MATLAB\R2009a\work\test4_1.dat');a=a(:,3)/33.3380;b=a(:,2)/45;plot(a,b);hold off
a=load('E:\MATLAB\R2009a\work\test4_1.dat');
a1=a(:,3)/33.3380;%原来你这一步改变了a的取值.
b=a(:,2)/45;
plot(a1,b);
hold off