Effacer les filtres
Effacer les filtres

unwanted variable can I not assign

3 vues (au cours des 30 derniers jours)
galara
galara le 6 Oct 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by