How to assign a input number

12 次查看(过去 30 天)
CK Yeap
CK Yeap 2018-10-17
评论: Jan 2018-10-17
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
Jan 2018-10-17
What exactly does "how to key in a number to the function" mean?

请先登录,再进行评论。

回答(1 个)

madhan ravi
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
not sure what you mean , see functions

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by