採用された回答

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 ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by