How to set freqz for not showing

3 次查看(过去 30 天)
Hi everyone I am doing a sound processing and i have a lot plots, i am using set(0,'DefaultFigureVisible','oFF') for not showing the figures and after i saving all the figures. The only figure for showing is the freqz
here is my code
[b,a] = butter(5,fc/(Fs/2));
h(1) = figure;
freqz(b,a);
Thank you

采纳的回答

Star Strider
Star Strider 2017-2-3
Ask freqz for outputs and it will not plot by default.
From the documentation:
  • freqz(_) with no output arguments plots the frequency response of the filter.
Example:
[h,w] = freqz(b,a,n);
See the documentation for freqz for details.
  2 个评论
Star Strider
Star Strider 2017-2-4
My pleasure!
If my Answer helped solve your problem, please Accept it!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by