Can't find the MATLAB error

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!

 Respuesta aceptada

Roger Stafford
Roger Stafford el 23 de Mzo. de 2016

0 votos

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

1 comentario

Student
Student el 23 de Mzo. de 2016
Thank you so much!!! Simple mistake was so frustrating.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Mzo. de 2016

Comentada:

el 23 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by