Can't find the MATLAB error

1 Ansicht (letzte 30 Tage)
Student
Student am 23 Mär. 2016
Kommentiert: Student am 23 Mär. 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!

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 23 Mär. 2016
There should be a comma between \n' and max(waketime(:)).
  1 Kommentar
Student
Student am 23 Mär. 2016
Thank you so much!!! Simple mistake was so frustrating.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by