필터 지우기
필터 지우기

What is this error in Script file?

조회 수: 8 (최근 30일)
adrooney
adrooney 2014년 10월 5일
댓글: Anees kazi 2015년 8월 14일
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
Star Strider
Star Strider 2014년 10월 6일
We don’t have ‘timeopc25’, and ‘alphaopc25’ so we can’t help you with them.
adrooney
adrooney 2014년 10월 6일
@Star Strider Please check my code and the graph just doesn't converge on the original graph. I have included the timeopc25 and alphaopc25 files too.

댓글을 달려면 로그인하십시오.

채택된 답변

Bruno Pop-Stefanov
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개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by