Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I need to call a m-file when I press a pushbutton in gui ? How can I manage. I tried
run scriptname
but it doesn't work, there is no variables appear in workspace after running the gui and pressing the pushbutton. There is no errors by the way in the command line.
Thanks.
a=input('enter the center frequency of the bandpass filter in hertz.'); %prompt the user to enter the center freq. of the desired bandpass filter.
ntrunc=500; %number of terms for truncation...
thank you for the answers, when I use the freqz command as prompted in the last post the frequency response figure appears without any errors but the figure is empty, I have an error in mathematical aspect I guess but I could't figure it out.:-?
---------- Post added at 11:13 ----------...
n=-10:1:10;
K=1;
f=5;
f0=697;
wc=2.*pi.*f;
w0=2.*pi.*f0;
hlp=(K./(pi.*n)).*sin(n.*wc);
hbp=(2.*cos(n.*w0)).*hlp;
here is my code, this code designs a digital FIR bandpass filter , I need to plot the frequency response of H'(w). Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.