varname=@(x) inputname(1);
disp(['Error in var: ' varname(mat)])
More Related Contents:
- Using i and j as variables in MATLAB
- Matlab file name with zero-padded numbers
- How can I load 100 files with similar names and/or string in just one step in MATLAB?
- How to interpolate with MATLAB 3D usind scatteredinterpolant plot? [closed]
- Matlab how to save a modified image from axes [closed]
- Is it possible to define more than one function per file in MATLAB, and access them from outside that file?
- Matlab: Running an m-file from command-line
- Loop through files in a folder in matlab
- Hash tables in MATLAB
- Find given row in a matrix
- Use a vector as an index to a matrix
- Suppressing a function’s command window output
- How to normalize / denormalize a vector to range [-1;1]
- How do I get the second return value from a function without using temporary variables?
- Matlab Template Matching Using FFT
- Sorting entire matrix according to one column in matlab
- How to generate a non-linear colormap/colorbar?
- how to count unique elements of a cell in matlab?
- How can I save an altered image in MATLAB?
- What are the semantics of ‘end’ in Matlab?
- Setting graph figure size
- How do I detect if I’m running MATLAB or Octave?
- What is a spectrogram and how do I set its parameters?
- String to variable name MATLAB
- How do I get the handles of all open figures in MATLAB
- How to use Hash Tables (dictionaries) in MATLAB? [duplicate]
- How to draw a line on an image in matlab?
- Matlab: arrayfun, cellfun, spfun and structfun vs. simple for-loop
- How to perform interpolation on a 2D array in MATLAB
- Automatically maximize a figure