Matlab R2009b introduced a new “operator” - ~ - to symbolize an unused output or function input. I have a detailed question about this implementation. (Calling all @Loren .)
What does the function see for the value of an unused input parameter?
i.e. if my function is defined as
myfunc(argOne, argTwo, argThree)
and is called like this:
myfunc('arg', ~, 'arg')
Nargin 2 or 3? Is argTwo undefined or empty or something else?
thank
~ , ( ). , :
~
function myfunc(argOne, ~, argThree) %# Will do nothing with the second input %# Do stuff here end
:
myfunc('arg', ~, 'arg'); %# Error city ;)
, ~ :
[~, I] = sort([2 4 1 2 5 3]); %# Sort the vector and keep only the index
Source: https://habr.com/ru/post/1727291/More articles:How can I use several forms for the general menu in a Winforms application? - c #How to make local block variable variables by default in ruby 1.9? - scopeПочему администратор Django пытается кодировать строки в ASCII, а не в Unicode? Или эта ошибка отличается от нее? - pythonWhy doesn't python str.format call str () - pythonSqlMetal does not create views, functions or stored procedures - sql-server-expressNo ANTLR3 node for NHibernate - nhibernateC #: abstract base strategy class used as a Factory object for strategy objects - c #Defining various frameworks using MSBuild gives dependency problems - msbuildhow Configure :: write works in cakePHP - phpUse both Class Table and Single Table inheritance in Castle Activerecord? - class-table-inheritanceAll Articles