how to call a function can you help me ?

조회 수: 1 (최근 30일)
sarp karayegen
sarp karayegen 2020년 5월 22일
편집: SayedPedram Hosseini 2020년 5월 22일
calling a function
  댓글 수: 1
James Tursa
James Tursa 2020년 5월 22일
Using its name will call it as long as it is visible to the caller.
x = 5;
sind(x) will call the sind function
cosd(x) will call the cosd function
etc.

댓글을 달려면 로그인하십시오.

답변 (1개)

SayedPedram Hosseini
SayedPedram Hosseini 2020년 5월 22일
편집: SayedPedram Hosseini 2020년 5월 22일
if you mean a standard function, then type it in the search toolbar (in matlab window top right) and you can find the inputs and other options for using this function. If you mean your self defined fuction, then you've got to define it at the end of your script. For that, search for "function" in the searchbar and you find out, what and how you've got to define.
it would be better if you gave the name of the function you meant, but hope this general explanation helps.

카테고리

Help CenterFile Exchange에서 Holidays / Seasons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by