How to Suppress a Function?
Ältere Kommentare anzeigen
When I run the code below, MATLAB runs it and I get the error “Not enough input arguments”. Isn’t there any way to tell MATLAB to wait to call the function until I execute, for example, average(5)?
function y = average(x)
y = sum(x)/length(x);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Performance and Memory finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!