error in if condition

Why the code is giving error
digits(2)
a=vpa(rand(1));
if a>0.5
disp('the value is false')
else
disp('true')
end

回答(0 个)

此问题已关闭。

关闭:

2020-6-7

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by