这道MATLAB程序那里错了呢n1=750;nN=1000;IfN=2.5;Ifdata=[0,0.4,1.0,1.6,2.0,2.5,2.6,3.0,3.6,4.4];Eadata=[5,33,78,120,150,176,180,193.5,206,225];plot(Ifdata.Eadata,'*');hold on If=0:0.1:3.5;Ean1=spline(Ifdata,Eadata,If);plot(If,Ean1)EanN=Ean1*nN

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 05:53:54
这道MATLAB程序那里错了呢n1=750;nN=1000;IfN=2.5;Ifdata=[0,0.4,1.0,1.6,2.0,2.5,2.6,3.0,3.6,4.4];Eadata=[5,33,78

这道MATLAB程序那里错了呢n1=750;nN=1000;IfN=2.5;Ifdata=[0,0.4,1.0,1.6,2.0,2.5,2.6,3.0,3.6,4.4];Eadata=[5,33,78,120,150,176,180,193.5,206,225];plot(Ifdata.Eadata,'*');hold on If=0:0.1:3.5;Ean1=spline(Ifdata,Eadata,If);plot(If,Ean1)EanN=Ean1*nN
这道MATLAB程序那里错了呢
n1=750;nN=1000;IfN=2.5;
Ifdata=[0,0.4,1.0,1.6,2.0,2.5,2.6,3.0,3.6,4.4];
Eadata=[5,33,78,120,150,176,180,193.5,206,225];
plot(Ifdata.Eadata,'*');
hold on
If=0:0.1:3.5;
Ean1=spline(Ifdata,Eadata,If);
plot(If,Ean1)
EanN=Ean1*nN/n1;
plot(If,EanN,'r')
hold on
If=IfN;
EaN=spline(Ifdata,Eadata,If)*nN/n1
plot([IfN,IfN],[0,300],'-.')
hold on
xlabel('If[A]')
ylabel('Ea[V]')

这道MATLAB程序那里错了呢n1=750;nN=1000;IfN=2.5;Ifdata=[0,0.4,1.0,1.6,2.0,2.5,2.6,3.0,3.6,4.4];Eadata=[5,33,78,120,150,176,180,193.5,206,225];plot(Ifdata.Eadata,'*');hold on If=0:0.1:3.5;Ean1=spline(Ifdata,Eadata,If);plot(If,Ean1)EanN=Ean1*nN
第4行中的"."改为","应为:
plot(Ifdata,Eadata,'*');