How to assign a input number
古いコメントを表示
Hi, I was new in matlab, I was doing a convert function, I have face a problem which is dont know how to key in a number to the function
1 件のコメント
Jan
2018 年 10 月 17 日
What exactly does "how to key in a number to the function" mean?
回答 (1 件)
madhan ravi
2018 年 10 月 17 日
編集済み: madhan ravi
2018 年 10 月 17 日
function input_a_number
number = input('enter a number : ')
end
or
x = 10
data = cuberoot(x)
function value = cuberoot(x)
value = x.^(1/3)
end
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!