I have matlab2007 and if i use multiple elseif the program don't run the second or third eleseif. This is the code… x=input('Give x a value x:') if x<-2 f=1 elseif -2<x<3 f=x+1 elseif x>=3 f=x^2 end
MATLAB: If and elseif problem
if eleseif
if eleseif
Best Answer