Convert Minutes to hours and minutes
4 views (last 30 days)
Show older comments
Victor Seaw
on 22 Mar 2015
Commented: Star Strider
on 23 Mar 2015
How to convert minutes to hours and minutes only?
0 Comments
Accepted Answer
Star Strider
on 22 Mar 2015
See if this does what you want:
hr_min = @(mins) [fix(mins/60) rem(mins,60)]; % Minutes —> [Hrs Min]
mins = [0:15:1440]'; % Test Data
test = hr_min(mins) % Test Output
8 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!