Simply, I don't understand the use of the ~ symbol in a specific case.
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Frederik
2012 年 12 月 13 日
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/
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!