Convert Minutes to Seconds
30 views (last 30 days)
Please execute this line of code in Matlab R2015b:
Why it goes crazy and gives back a column vector of size 4777?
I need to create ticks for my plot; and I thought this had to work!
Thorsten on 3 Aug 2016
Edited: Thorsten on 3 Aug 2016
The help of minutes tells us
If X is a numeric array, then M is a duration array in units of minutes.
If X is a duration array, then M is a double array with each element equal to the number of minutes in the corresponding element of X.
give a double, while
gives a duration. So you have
which messes all up. To increment by 1 minute, use