operation using *.m file

1 回表示 (過去 30 日間)
Nik
Nik 2014 年 4 月 1 日
コメント済み: Nik 2014 年 4 月 3 日
Can we make mathematical operation by calling our *.m function? For example, I have hthresh.m and sthresh.m. I want to get the average value of these 2 file.

採用された回答

Chandrasekhar
Chandrasekhar 2014 年 4 月 1 日
make hthresh.m and sthresh.m as function files
function val1 = hthresh()
function val2 = sthresh()
and use the below code in another .m file
val1 = hthresh();
val2 = sthresh();
avg = (val1+val2)/2;
  1 件のコメント
Nik
Nik 2014 年 4 月 3 日
Tq very much Sir Akshata... it helps..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by