If function error in for cycle

2 views (last 30 days)
Nicola
Nicola on 28 Jan 2014
Edited: Nicola on 28 Jan 2014
Good evening, i have a problem with this code The problem is in line 72; the variable minuti=14(which is part of a time 9.14), mminuti is an array of multiple numbers of six(i'm sampling time every 6 minutes); i want that it prints ggradi when the if condition is verified (mminuti(z)=12 < minuti=14 < minuti(z+1)=18, or rather when it is 9.12 because 9.14 is 9.12<9.14<9.18) This is verified when z=25; why does it print when z=25 of the next cycle 9.18?
Thank you so much!
If you want to try it http://sdrv.ms/1b5RZwJ LINK

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox 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!