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

1 件のコメント

Andreas Bernatzky
Andreas Bernatzky 2020 年 6 月 7 日
code works fine for me

回答 (0 件)

この質問は閉じられています。

質問済み:

2020 年 6 月 7 日

閉鎖済み:

2020 年 6 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by