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 Kommentar

Adam
Adam am 19 Jun. 2017
Bearbeitet: Adam am 19 Jun. 2017
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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 19 Jun. 2017

Beantwortet:

ES
am 19 Jun. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by