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

5 visualizzazioni (ultimi 30 giorni)
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 Commento
Adam
Adam il 19 Giu 2017
Modificato: Adam il 19 Giu 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.

Accedi per commentare.

Risposta accettata

ES
ES il 19 Giu 2017
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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by