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

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Debugging and Improving Code 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by