Code covered by the BSD License  

Highlights from
Agilent Infiniium and InfiniiVision Oscilloscopes – MATLAB Example

image thumbnail
from Agilent Infiniium and InfiniiVision Oscilloscopes – MATLAB Example by Vinod Cherian
MATLAB application example for Agilent Infiniium and InfiniiVision oscilloscopes

invertwave
invertwave function varargout = INVERTWAVE( Data, Time )
%   INVERTWAVE Invert the waveform
%   
%    Usage:
%    [X,Y]   = INVERTWAVE(DATA,TIME);
%   
%    MATLAB Code that is executed: 
%   
%      fData = -1*Data;
%   
%    See also
%    SQUAREWAVE, PULSEWAVE, PULSEWAVE2, ZEROCROSSING 


if nargout ==3
    varargout{1} = 'Time';
    varargout{2} = 'Volts';
    varargout{3} = 'Inverted the Waveform';
    return;
end;
if nargin==0
    help(mfilename)
    return;
end;
varargout{1} = Time;
varargout{2} = -1*Data;

Return to Content

Contact us at files@mathworks.com