### Possible Answer

> I would like to do if-else in 1 line in matlab but I don't know if MATLAB has this feature. > > My C program is: > ... This *could* be done in one line, ... - read more

Continue Long Statements on Multiple Lines; ... because each line contains only one quotation mark: ... Try MATLAB, Simulink, ... - read more

Please vote if the answer you were given helped you or not, thats the best way to improve our algorithm. You can also submit an answer or search documents about one line if statements matlab.