error in if condition
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentar
Andreas Bernatzky
am 7 Jun. 2020
code works fine for me
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!