Rank: 7489 based on 9 downloads (last 30 days) and 1 file submitted
photo

Bas-Jan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Bas-Jan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Apr 2013 Screenshot Default arguments Set default values for optional function input. Author: Bas-Jan default arguments, function inputs 9 1
Comments and Ratings by Bas-Jan View all
Updated File Comments Rating
02 May 2013 Running Extrema Returns the running minimum or maximum of a vector or matrix (analagous to the running average) Author: Dan K

25 Apr 2013 lscatter : scatter plot with labels instead of markers Similar to ML's scatter command, but allows you to use separate labels for each point. Author: Yvan Lengwiler

Works like a charm, exactly what I needed.

Minor suggestion for improvement: it would be nice if the syntax from the plot-command could be used for the markers/linestyle. For example 'r.' for red dots.

Comments and Ratings on Bas-Jan's Files
Updated File Comment by Comments Rating
26 Apr 2013 Default arguments Set default values for optional function input. Author: Bas-Jan Simon, Jan

What do you expect as result of this line:
varargin = varargin{:};
I assume, it should be deleted to avoid errors.
The code can be simplified:
varargout = defaults;
n = min(numel(defaults), numel(varargin));
varargout(1:n) = varargin(1:n);
if nargin > n
% error instead of a warning
end
An error is much more reliable than a warning, which will be overseen when a mutli-million line program fils the command window with status messages.

Contact us