How do you call a user defined function twice in a script?
2 views (last 30 days)
Show older comments
how do you call a user defined function twice in a script?
0 Comments
Accepted Answer
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)
See Also
Categories
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!