MATLAB COMPILER RELEASE NOTES User's Guide Page 366

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 365
R2009b
15-18
Programming
Ignore Selected Arguments on Function Calls
This version of MATLAB introduces a new usage for the tilde (~) operator. As in
earlier releases, tilde signifies a logical NOT. In the 9b release, you can also use
the tilde operator to specify unused outputs in a function call, or unused inputs in a
function definition. See Ignore Function Inputs in the Programming Fundamentals
documentation for more information on this feature.
Replacing Output Variables with Tilde
This feature enables you to replace this type of function call:
[val1, ignoreThisOutput, val3] = myTestFun;
with the following:
[val1, ~, val3] = myTestFun;
MATLAB ignores any values returned by a function that have a corresponding tilde in
the output list. This new syntax can help you avoid confusion in your program code and
unnecessary clutter in your workspace. It also avoids wasting memory to store unused
outputs returned from the called function.
Replacing Input Arguments with Tilde
You can also use the tilde operator to specify unused inputs when you are creating a
function. You can replace this type of function definition:
function myTestFun(arg1, ignoreThisInput, arg3)
with the following
function myTestFun(arg1, ~, arg)
Whenever this function is called, MATLAB ignores any inputs passed to the function that
have a tilde in the corresponding position in the input argument list. You are likely to
find the tilde operator most useful when writing callback functions and subclass methods
that must match a predefined function interface.
Page view 365
1 2 ... 361 362 363 364 365 366 367 368 369 370 371 ... 715 716

Comments to this Manuals

No comments

Energizer CAPP2BODE manuali

Manuali dei proprietari e guide per l'utente per Torce Energizer CAPP2BODE.
We fornisce 1 manuali pdf Energizer CAPP2BODE per scaricare gratuitamente in base al tipo di documento: Scheda Tecnica


Energizer CAPP2BODE Scheda Tecnica (1 pagine)


Marchio: Energizer | Categoria: Flashlights | Dimensione: 0.07 MB |

 




Più prodotti e manuali per Torce Energizer

Modelli Tipo di Documento
627462 Scheda Tecnica   Energizer Booklite, 1 pagine
ENSHH31L Scheda Tecnica   Energizer ENSHH31L flashlight, 1 pagine
625700 Scheda Tecnica   Energizer Princess, 1 pagine
ENSHL11L Scheda Tecnica   Energizer ENSHL11L flashlight, 1 pagine
628909 Scheda Tecnica   Energizer ATEX 2D Intrinsically Safe LED, 1 pagine
HDL1AAE Scheda Tecnica   Energizer HDL1AAE flashlight, 1 pagine
628908 Scheda Tecnica   Energizer ATEX 2AA Intrinsically Safe LED, 1 pagine
WRRCNM3G Scheda Tecnica   Energizer WRRCNM3G flashlight, 1 pagine
WR2A3ACE Scheda Tecnica    Energizer WR2A3ACE flashlight, 1 pagine
EDMCC42E Manuale Utente   Energizer EDMCC42E flashlight, 1 pagine
HD33A3CE Manuale   Energizer HD33A3CE flashlight, 2 pagine
HDL33A2E Manuale   Energizer HDL33A2E flashlight, 1 pagine