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

 채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 9월 22일
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에 대해 자세히 알아보기

질문:

2011년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by