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
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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2018년 10월 17일

댓글:

Jan
2018년 10월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by