Code covered by the BSD License  

Highlights from
FeatureFinder 2.4.1

image thumbnail

FeatureFinder 2.4.1

by

 

20 Aug 2012 (Updated )

A user-friendly tool for signal filtering and feature extraction. Well-suited to large data sets!

X=vLastSelected(A,B,C)
function X=vLastSelected(A,B,C)

persistent LastSelected

X=[];

% Clear variable if requested
if nargin==1 && strcmp(A,'clear')
    clear LastSelected
% Set variable if requested
elseif nargin==2 && strcmp(A,'set')
    LastSelected=B;
% Reset variable to initial values
elseif nargin==1 && strcmp(A,'reset')
    if ~isempty(LastSelected)
        LastSelected(:,2)={0};    
    end
% Retrieve variable if requested
elseif nargin==0
    X=LastSelected;
% If command not recognized, alert user
else
    fprintf('WARNING:  Unrecognized command to vLastSelected.\n\n');
end

Contact us