MATLAB: Usage of not isequal

isequal

I am using this line: while not(isequal(OptimalPath(end,2)),SearchGoal)
end
I get error "not enough input arguments" – puzzled why

Best Answer

not( isequal(OptimalPath(end,2),SearchGoal) )
You had the ) in the wrong place
Related Question