generate function and save it

i generate new function (triarea) and i test it in work space and it work
probably , but the problem when i want to save it , say (undefine input argument)
the code is show below
_||function a= triarea (b,h)
a=0.5*(b.*h);||_
error show below
||Input argument "b" is undefined.
Error in ==> triarea at 2
a=0.5*(b.*h);||

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 19 Apr. 2013

0 Stimmen

When you type
triarea(1,2)
What is the error message?

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 19 Apr. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by