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

2 views (last 30 days)
how do you call a user defined function twice in a script?

Accepted Answer

Jan
Jan on 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;

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!