Can't find the MATLAB error

2 ビュー (過去 30 日間)
Student
Student 2016 年 3 月 23 日
コメント済み: Student 2016 年 3 月 23 日
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(:)).
  1 件のコメント
Student
Student 2016 年 3 月 23 日
Thank you so much!!! Simple mistake was so frustrating.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by