Effacer les filtres
Effacer les filtres

Simply, I don't understand the use of the ~ symbol in a specific case.

2 vues (au cours des 30 derniers jours)
JOE
JOE le 13 Déc 2012
I understand that ~ is the NOT operation but I was running someone else's script on an older version of MATLAB (2008b) and the function fails because it makes the following call:
[~, x] = function(...)
It works on the 2012 distribution. I however am simply confused as to what this [~, x] means. What is the "~" doing?
Thank you.

Réponses (1)

Frederik
Frederik le 13 Déc 2012
The ~ is used as a placeholder for unused arguments. Take a look here: http://blogs.mathworks.com/steve/2010/01/11/about-the-unused-argument-syntax-in-r2009b/

Catégories

En savoir plus sur Get Started with MATLAB 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