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.

サインインしてコメントする。

 採用された回答

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 件)

カテゴリ

ヘルプ センター および File ExchangeGet 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