I have some very basic logic that is not working. It's a simple 'if' statement with an '==' operator. Please help.
Program:
%simple_script.m
clear allA = 0.40;B = 0.20;C = 0.60;D = A + B; if C == D disp('It worked.') else disp('It did not work.') end
Command Window:
>> simple_script It did not work. >>
Best Answer