How can one refer to the calculation in a function m-file?

2 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2020 年 6 月 1 日
コメント済み: alpedhuez 2020 年 6 月 2 日
I have a livescript file main.mlx. The file refers to a function m file test.m. In this test.m I calculate
s1=polyvar(x,y).
I want to use s1 in main.mix to calculate polyfit. What should one do?
  1 件のコメント
dpb
dpb 2020 年 6 月 2 日
Call test with place to store the returned result -- presuming, of course, the function was written to return the desired result. If that's not the case will have to rewrite at least the function line to return the desired output.

サインインしてコメントする。

採用された回答

Kevin Joshi
Kevin Joshi 2020 年 6 月 2 日
Hi,
Please check the example of live script and a function called by it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by