How to input functon arguments without order?
Afficher commentaires plus anciens
Is there a way for calling a function which has a lot of arguments without the order?
for example consider the following function:
function y=f(x1, x2, x3, x4, x5, x6)
%code
end
I would like to call it as follows:
f(x2=2, x1=4, x6=7, x4=0, x3=-1, x5=2.5)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!