multiple arguments in function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i want to define a function, where output arguments are around 2000, how can i do that.
function [u1, u2.....u2000]=train()
0 Commenti
Risposta accettata
sixwwwwww
il 14 Ott 2013
Dear Parul,
You can use "varargout" for any number of output arguments. So in your case
function [varargout] = train()
2 Commenti
Image Analyst
il 15 Ott 2013
So you did that??? You actually created 2000 separate variables instead of using an array like I suggested? There are no experienced MATLAB programmers I know who would take that approach.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!