Info

此问题已关闭。 请重新打开它进行编辑或回答。

error in if condition

2 次查看(过去 30 天)
abdul rehman
abdul rehman 2020-6-7
关闭: madhan ravi 2020-6-7
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 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by