Prev: Java troubles
Next: convert a sound file to bit stream
From: John on 22 Apr 2010 10:26 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 22 Apr 2010 10:28 solved it: function plot(varargin) builtin('plot',varargin{:}) disp('test') end
|
Pages: 1 Prev: Java troubles Next: convert a sound file to bit stream |