I have the following:
if i > m_1(1,1)& <= m_2(1,1) w(i,1) = w_2 end
Which doesn't want to execute as it is an unexpected MatLab operator.
Is it due to syntax or do you have to specify domains in another way?
multiple less than / greater than statements in an if statement
if i > m_1(1,1)& <= m_2(1,1) w(i,1) = w_2 end
Best Answer