Undefined function or method 'lt' for input arguments of type 'cell'

Hello!
While running my scripts i am sometimes get the following error:
_Undefined function or method 'lt' for input arguments of type 'cell' _
I've said sometimes because a strange thing happens here - running the same code exactly sometimes provide this error, and sometimes not!
The most strange thing here is that i don't even working with cells!!
The line that providing this error is:
Check_For_Bottom_Limit = Delta_Vector < (Configurations.Ramp_Down_No_RB_Alloc_Change_Bottom_Limit{1,1} - Rlxtion) ;
While:
Delta_Vector = [-1.4 -1.6 -8 ....]
Configurations.Ramp_Down_No_RB_Alloc_Change_Bottom_Limit{1,1} = 0
Rlxtion = 0
*Please help!!! *
Thanks!
Itay

 Accepted Answer

lt means Less than:
A < B
And probably expression:
(Configurations.Ramp_Down_No_RB_Alloc_Change_Bottom_Limit{1,1} - Rlxtion)
sometimes is a cell.
And you work with a cells:
Configurations.Ramp_Down_No_RB_Alloc_Change_Bottom_Limit { 1,1 }
Tip: before you run the program, type:
dbstop if error
The program will stop when the error occur and you will be able to see what's wrong

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!