function bodemaghz(h, w)
% same as bodemag, but horizontal axis is [Hz] instead of [rad/s]
[a, b] = tfdata(h);
as = polyscale(a{1}, 0.5/pi);
bs = polyscale(b{1}, 0.5/pi);
hs = tf(as, bs);
if nargin > 1
    bodemag(hs, w/2/pi);
else
    bodemag(hs);
end
xlabel('Frequency [Hz]');
