From: John on
So I made my own overload function for plot..

I created a file plot.m which contains this:

function plot(varargin)
builtin('plot',varargin{1})
disp('test')
end

and placed the file in C:\Users\Administrator\Documents\MATLAB

My question is:

In the above implementation, my plot function assumes that there is only one
input argument, but - as you know - the plot function can take
several arguments...So how do I call the original plot function with
whatever number of valid arguments in varargin ?





From: John on
solved it:

function plot(varargin)
builtin('plot',varargin{:})
disp('test')
end