what is the wrong with my code?
이전 댓글 표시
z=6;
if z==6
prompt = "what type of threaded pipe fitting (Globe (1)/Angle (2)/GateWide (3)/Gatehalf (4)/Return (5)/Tee (6)/Straight-Through (7)/Side-outlet (8)/90 (9)/45 (10)): ";
y=input(prompt,"s");
if y=='1'
k=10;
else
if y=='2'
k=5;
else
if y=='3'
k=0.2;
else
if y=='4'
k=5.6;
else
if y=='5'
k=2.2;
else
if y=='6'
k=0.4;
else
if y=='7'
k=1.8;
else
if y=='8'
k=0.9;
else
if y=='9'
k=0.4;
else
y="Error";
end
end
end
end
end
end
end
end
end
end
댓글 수: 1
Torsten
2023년 5월 13일
Please include the complete error message.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Geoscience에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!