Code covered by the BSD License  

Highlights from
Comparison of C++ and MATLAB Using Object Oriented Application Example

image thumbnail

Comparison of C++ and MATLAB Using Object Oriented Application Example

by

 

28 Feb 2008 (Updated )

Wireless Communications Application Example Used to Compare C++ and MATLABĀ® Code

arg=getArg(argPosition,vararg_in,default)
function arg=getArg(argPosition,vararg_in,default)
% Sets a default parameter if not found in varargin list
%
% Copyright 2008-2009 The MathWorks, Inc

if length(vararg_in)>=argPosition
    arg=vararg_in{argPosition};
else
    arg=default; % Default parameters
end

Contact us