回复: [求助]load命令为什么程序没有通过?
改成这样通过了,视乎还是与load命令有关系!
但是,为何别人相似是程序是可以运行的呢?
close all
clear all
%A0=load('compression.txt'); %导入 %
A1=[1.2000
1.2500
1.3330
1.5000
1.6670
2.0000
2.5000
3.0000
4.0000];
I1=A1';
% B0=load('alpha.txt'); %导入 %
B1=[0.016239
0.12
0.13522
0.144232
0.155643
0.168477
0.172891
0.185578
0.191479];
I2=B1';
% C0=load('beta.txt'); %导入 %
C1=[0.015307
0.116073
0.116713
0.122432
0.123741
0.125946
0.131371
0.133544
0.139111];
I3=C1';
% D0=load('relation.txt'); %导入 %
D1=[0.94258
0.189893
0.190237
0.19257
0.192583
0.191112
0.195378
0.194282
0.194292];
I4=D1';
figure(1);
plot(I2,I3,'k-');
title('\alpha-\beta ');
xlabel('\alpha(degree)'),ylabel('\beta(degree)');
N=9;
figure(2);
plot(I1,I2,'k--',I1,I3,'k-');
title('Cr-\alpha,\beta');
xlabel('Cr'),ylabel('Matching Angle(degree)');
legend('\alpha','\beta');
figure(3);
plot(I1,I4,'K-');
title('Cr-R'),
xlabel('Cr'),ylabel('R=\alpha/\beta');
grid off;
|