With MATLAB Version 7.9 (R2009b) you can use a ~, e.g.,
[~, ~, variableThatIWillUse] = myFunction();
Note that the ,
isn’t optional. Just typing [~ ~ var]
will not work, and will throw an error.
See the release notes for details.
More Related Contents:
- How can I index a MATLAB array returned by a function without first assigning it to a local variable?
- Is it possible to define more than one function per file in MATLAB, and access them from outside that file?
- How can I apply a function to every row/column of a matrix in MATLAB?
- Suppressing a function’s command window output
- Passing functions as arguments in Matlab
- How to interpolate with MATLAB 3D usind scatteredinterpolant plot? [closed]
- how to get a single feature vector from SIFT descriptor [closed]
- How to return a result from a VBA function
- How to get all files under a specific directory in MATLAB?
- Generate random number with given probability matlab
- Which is more efficient: Return a value vs. Pass by reference?
- How do I access structure fields dynamically?
- Plot a plane based on a normal vector and a point in Matlab or matplotlib
- Image rotation by Matlab without using imrotate
- Fastest Matlab file reading?
- Matlab – PCA analysis and reconstruction of multi dimensional data
- Return value from nested function in Javascript [duplicate]
- Printing a MATLAB plot in exact dimensions on paper
- Deleting matrix elements by = [] vs reassigning matrix
- Retraining after Cross Validation with libsvm
- Proper way to add noise to signal
- Matlab file name with zero-padded numbers
- How can I sort a 2-D array in MATLAB with respect to one column?
- Attempt to execute script as a function
- MATLAB: Differences between .mat versions
- How to change an image from Cartesian to Polar coordinates in Matlab?
- Iterating through struct fieldnames in MATLAB
- Can I treat a specific warning as an error?
- Using OpenGL in Matlab to get depth buffer
- MATLAB linked list