What error in this simple code? it says 'the statement is missing'?help a beginner

endsecperday=60*60*24;
tau=1.5*secperday;
endofclass=5*secperday;
knowledgeatend=1-exp(-endofclass/tau);
disp(['at the end of 6.094,i will know '...
num2str(knowledgeatend*100)'% of MATLAB'])

댓글 수: 1

Adam
Adam 2017년 6월 19일
편집: Adam 2017년 6월 19일
Please post a full error message if you are getting an error.
You need a space before the '% of MATLAB' on the last line though.

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

 채택된 답변

secperday=60*60*24;
tau=1.5*secperday;
endofclass=5*secperday;
knowledgeatend=1-exp(-endofclass/tau);
disp(['at the end of 6.094,i will know '...
num2str(knowledgeatend*100) , '% of MATLAB'])% Note the comma before the last piece of string

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2017년 6월 19일

답변:

ES
2017년 6월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by