How do you call a user defined function twice in a script?

2 Ansichten (letzte 30 Tage)
komal Bhandari
komal Bhandari am 3 Nov. 2011
how do you call a user defined function twice in a script?

Akzeptierte Antwort

Jan
Jan am 3 Nov. 2011
By calling it twice?
Example: The script:
a = myUserDefinedFunction(9);
b = myUserDefinedFunction(11);
The function:
function Out = myUserDefinedFunction(In)
Out = 3 - In;

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by