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

compScopeMath
function compScopeMath
%
% COMPSCOPEMATH compile the ScopeMath executable.  It automatically pulls
% the extra files into the CTF archive.
%

basedir = getbasedir;
mcccommand = 'mcc -mv ScopeMath -a MPlot.m -a MWaterfall.m';
%mcccommand = 'mcc -v -B csharedlib:ScopeMathLib ScopeMath -a MPlot.m -a MWaterfall.m';

findFiles('/GUI/icons/*.gif');
findFiles('/GUI/icons/*.mat');
findFiles('/drivers/*.mdd');
findFiles('/demofunctions/*.m');
findFiles('/GUI/*.bmp');

helpdirs = genpath([basedir, '/help']);
chelpdirs = regexp(helpdirs, '[\w\\\/:]*[^;]', 'match');
chelpdirs = cellmap(chelpdirs, @(x) x(length(basedir)+1:end));
cellapply(chelpdirs, @(x) findFiles(x));

mcccommand
eval(mcccommand);

    function addFile(sFname)
        if (~isdir(sFname) && ~strcmp('scc', sFname(end-2:end)))
            mcccommand = sprintf('%s -a %s', mcccommand, sFname);
        end
    end

    function findFiles(sDirFilter)
        files = dir([basedir, sDirFilter]);
        cfiles = {files.name};
        cellapply(cfiles, @addFile);
    end

end

Contact us at files@mathworks.com