Could someone please help me with this?
Error: File: work.m Line: 28 Column: 5
waketime = (diary.wakeTimes - floor(diary.wakeTimes)).*24;
fprintf(' Max Min Mean Median STD AAD MAD\n'); fprintf('Wake up time hours: %8.1f % 8.1f % 8.1f % 8.1f % 8.1f % 8.1f % 8.1f\n' ... max(waketime(:)), min(waketime(:)), mean(waketime(:)), median(waketime(:)), std(waketime(:)), mad(waketime, 1), mad(wakeup, 0));
I get "unexpected parenthesis/bracket" but I can't find what's wrong. Please help, I'd really very much appreciate it!

 채택된 답변

Roger Stafford
Roger Stafford 2016년 3월 23일

0 개 추천

There should be a comma between \n' and max(waketime(:)).

댓글 수: 1

Student
Student 2016년 3월 23일
Thank you so much!!! Simple mistake was so frustrating.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2016년 3월 23일

댓글:

2016년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by