Azzera filtri
Azzera filtri

unwanted variable can I not assign

3 visualizzazioni (ultimi 30 giorni)
galara
galara il 6 Ott 2016
Risposto: Jakub Mrowka il 6 Ott 2016
Hi, some function in matlab like "size" has options to give 2 outputs like "[a1,a2]=size(x)". But sometimes I don't want to waste space for another variable, is it possible to not do that?

Risposta accettata

Jakub Mrowka
Jakub Mrowka il 6 Ott 2016
Modificato: Jakub Mrowka il 6 Ott 2016
If you don't want every answer from function just type "~" instead of variable.
Example:
[~,a2]=size(x)

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by