what's the wrong in this expression

1 次查看(过去 30 天)
what's the wrong in this expression
if(rr(i)>= l(i,1)&& rr(i)<=h(i,1))
when i run my program i have error in this expresion.i need to help me .thank you for all
  2 个评论
TADA
TADA 2019-1-29
Post the error details, all the red text you get in the command window
Rik
Rik 2019-1-29
Have a read here (or here for more general advice). It will greatly improve your chances of getting an answer.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2019-1-29
rr does not contain at least i elements, or else l does not contain at least i rows, or else h does not contain at least i rows, or else rr or h or l are functions that return something that is not a scalar.
Or there is a problem on a different line.

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by