How to set freqz for not showing

조회 수: 3 (최근 30일)
andreas ioannou
andreas ioannou 2017년 2월 3일
댓글: Star Strider 2017년 2월 4일
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
andreas ioannou
andreas ioannou 2017년 2월 4일
Thanks Star Strider :)
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