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;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by