Can't find the MATLAB error

5 views (last 30 days)
Student
Student on 23 Mar 2016
Commented: Student on 23 Mar 2016
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!

Accepted Answer

Roger Stafford
Roger Stafford on 23 Mar 2016
There should be a comma between \n' and max(waketime(:)).
  1 Comment
Student
Student on 23 Mar 2016
Thank you so much!!! Simple mistake was so frustrating.

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!