How do you call a user defined function twice in a script?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how do you call a user defined function twice in a script?
0 Kommentare
Akzeptierte Antwort
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)
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!