MATLAB: Need Conditional ElseIf statement conditional statementselseifif w=[200 205 188;169 255 156;192 168 172] if(0<w(5)<255) x=1; else x=2;end for this kind of code i'm getting x value as 1.can anyone help me to identify what mistake i have made… Best Answer (0<w(5)<255)You probably mean this:((0 < w(5)) & (w(5) < 255))Evaluating yours left to right:0<w(5)<255TRUE < 255TRUE Related SolutionsMATLAB: Too many output arguments help Your function needs to be told what to return, e.g.,function ColorIdent = ColorID(~) MATLAB: Error using image Error using image TrueColor – How to plot images created by joining arrays instead of using imread image( uint8( dot ) )should work, although just doing what you put works for me too in R2016b Related QuestionI have a binery information ,how can i make an image with the help of thisIndex exceeds matrix dimensions.Simple elseif loop doesn’t work
Best Answer