error in if mupad file

조회 수: 2 (최근 30일)
golnaz
golnaz 2014년 6월 30일
hello all,my code is
if true
c:=input(c)
d:=input(d)
if d:=c
then
Ml:=ro*PI*(c^2)*l/2
elif d>c then teta0:=arccos(d-c)
Ml:=ro*(c^2)*l*(2*PI-2*teta0+sin(2*teta0))/2
elif d<c then teta0:=acos(1-h)
Ml:=ro*(c^2)*l*(2*teta0-sin(2*teta0))/2
end_if:
end
Error: Unexpected 'identifier'. [line 5, col 1]
could any body help me.
with regards

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by