storing only part of the output of a function with multiple outputs
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Suppose you have a function with many outputs, e.g.,
[C,ia] = setdiff(A,B)
I am only interested in ia and not C. Is there some way of only calling on ia without storing C? Thank you very much!
0 Commenti
Risposta accettata
Star Strider
il 3 Mar 2015
Use the tilde ‘~’ to suppress outputs you don’t need.
In this instance:
[~,ia] = setdiff(A,B)
0 Commenti
Più risposte (1)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!