What is this error in Script file?
2 次查看(过去 30 天)
显示 更早的评论
X=zeros (1,1301);
time =0:0.05:65;
k=0.05;
for i=2:1301
X(i) = ((k*(0.293*X(i-1)^2)-(0.542*X(i-1))+0.354)*0.05) +X(i-1);
end
plot (time, X)
hold on
plot (timeopc25, alphaopc25,'--')
legend('Predicted Data','Experimental data');
It tells, not formed from a valid matlab identifier. What does this mean? Thanx in advance
4 个评论
采纳的回答
Bruno Pop-Stefanov
2014-10-6
This error usually occur when there is a space in an M-file, or other forbidden characters. Check that the script file containing the code has a correct name with no white spaces.
This is incorrect: "my file.m"
This is correct: "myfile.m"
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!