if statment. why do i receive following statment: Operands to the || and && operators must be convertible to logical scalar values.
Show older comments
Hi all plz help me.I don't understand why following code is not working..
choice=input('enter something:','s');
if str2num(choice)==1 lower(choice) == 'load the data'
disp('loading the data')
end
when i run the code matlab says following:
Operands to the and && operators must be convertible to logical scalar values.
thx..
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!