Code covered by the BSD License  

Highlights from
Analog Filter Design Toolbox

image thumbnail

Analog Filter Design Toolbox



27 Dec 2005 (Updated )

GUI to design and simulate active (opamp) LP and HP Bessel, Butter, Cheby, and Elliptic filters.

function MenuFileSaveAs(handles)
% MenuFileSaveAs is a subfile of the AnalogFilter GUI collection
% James C. Squire, 2002
% Assistant Professor, Virginia Military Institute
% ver 1.0

% MenuFileSaveAs saves a global strFilterObject as a new filename, 
% and updates the gui's FilterObject

global strFilterObject

[sFileName, sPathName] = uiputfile('*.flt','Save As Analog Filter File'); 

% if cancel not pressed
if sFileName
    if isempty(findstr(sFileName,'.flt')) 
        sFileName = [sFileName '.flt']; 
    strFilterObject.sFileName = sFileName;
    strFilterObject.sFigureName = ['Analog Filter Designer: ' sFileName];
    save([sPathName sFileName],'strFilterObject') %'strFilterObject','-MAT')
    % update the figure name and store that in the figure's data handles

Contact us