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

5 次查看(过去 30 天)
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.

请先登录,再进行评论。

采纳的回答

ES
ES 2017-6-19
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 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by