Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

error in if condition

1 view (last 30 days)
abdul rehman
abdul rehman on 7 Jun 2020
Closed: madhan ravi on 7 Jun 2020
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

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!