MATLAB: I keep getting this error Error: File: BarcodeRea​derLiveScr​ipt.m Line: 242 Column: 5 Illegal use of reserved keyword “else”.

MATLAB

Best Answer

Do not do

if color=='black'

do this instead:

if strcmpi(color, 'black')