채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 8월 29일
편집: KALYAN ACHARJYA 2019년 8월 29일

0 개 추천

First you have to create the function and save in different Matlab file, the file name must be same as function name, in your case kalpa.m
Next call the function (by passing x value to the function file) from commnad widow or from another Matlab script.
like
y=kalpa(10)
% here y will return as 100
Hera Hazarika, I hope you get the point.

댓글 수: 3

KALPAJYOTI HAZARIKA
KALPAJYOTI HAZARIKA 2019년 8월 29일
thank you. I know this. But my problem was not because of what you have mentioned but because of not passing the argument through the RUN button(inside therun button one must input the arguments then it will work)
madhan ravi
madhan ravi 2019년 9월 2일
That's what Kalyan implies "Next call the function (by passing x value to the function file) from commnad widow or from another Matlab script."
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 9월 2일
@Madhan.. Always..Thanks

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by