Filter löschen
Filter löschen

If function error in for cycle

2 Ansichten (letzte 30 Tage)
Nicola
Nicola am 28 Jan. 2014
Bearbeitet: Nicola am 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

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by