# How can I make the FREQZ function (in the Signal Processing or Filter

How can I make the FREQZ function (in the **Signal Processing** or Filter Design Toolboxes) produce a plot with a logarithmic frequency axis?

The FREQZ function plots frequency on a linear axis. I would like an option to have frequency plot on a logarithmic axis instead.

# ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The ability to have the FREQZ function in the Communications Toolbox plot using a logarithmic frequency axis is not available.

To work around this issue, adjust the axis type after creating the figure. This can be done by executing the following MATLAB commands after plotting with FREQZ:

ax = findall(gcf, 'Type', 'axes');set(ax, 'XScale', 'log');

This will reset the scale on the “x” axes (there are two, superimposed — one for magnitude, one for phase). You will likely wish to specify new x-axis limits. This can be done by executing:

**SEE COMPLETE ANSWER CLICK THE LINK**