MATLAB: Unwanted variable can I not assign

unwantedvariable

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?

Best Answer

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