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.

 Respuesta aceptada

Chandrasekhar
Chandrasekhar el 1 de Abr. de 2014

0 votos

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 comentario

Nik
Nik el 3 de Abr. de 2014
Tq very much Sir Akshata... it helps..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Nik
el 1 de Abr. de 2014

Comentada:

Nik
el 3 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by