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