Can't find the MATLAB error

2 次查看(过去 30 天)
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
There should be a comma between \n' and max(waketime(:)).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by