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

cellmap(cIn, hFunc)
function cOut = cellmap(cIn, hFunc)
%% 
% CELLMAP Apply a function to every element of a cell array.
% 
% cOut = cellmap(cIn, hFunc) applies the single argument function hFunc to 
% every element of the cell array cIn returning the result in a new cell 
% array cOut
% 
% See also CELLAPPLY, CELLMAPFILT, CELLFILT

cOut = cell(size(cIn));

for n = 1:length(cIn)
    cOut{n} = hFunc(cIn{n});
end

Contact us at files@mathworks.com