Help about function with if statement
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I have problem with creating function. I don´t know how to use command function properly. Can you guys tell me where I was wrong it will be very helpfull
function [y]=task1(x)
if x>=9
y = 15*(4*x)^(1/2)+10;
end
if (0<=x<9)
y=10*x +10;
end
if (x<0) y=10;
end
0 件のコメント
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!