unwanted variable can I not assign

2 ビュー (過去 30 日間)
galara
galara 2016 年 10 月 6 日
回答済み: Jakub Mrowka 2016 年 10 月 6 日
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?

採用された回答

Jakub Mrowka
Jakub Mrowka 2016 年 10 月 6 日
編集済み: Jakub Mrowka 2016 年 10 月 6 日
If you don't want every answer from function just type "~" instead of variable.
Example:
[~,a2]=size(x)

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by