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

조회 수: 1 (최근 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