Consider the simplest case:
$$H(z) = \frac{z+1}{z+2}$$
I use two methods to find $H_\infty$-norm:
H = tf([1 1],[1 2],.001);
[ninf,fpeak] = norm(H,inf)
ninf =
0.6667
fpeak =
0
[ninf1,fpeak1] = hinfnorm(H)
ninf1 =
Inf
It seems odd, the answers are different.
What did I miss?
If the system is unstable, the $H_\infty$ norm is infinite. You have a discrete time system with a pole greater than 1 in absolute value hence the answer
inf. First one doesn't check for stability and converts it to state space system.The discrepancy is due to the fact that
norm()command only checks for $L_\infty$ not necessarily $H_\infty$ (for stable real-rational systems these coincide). That should be emphasized more in the documentation in my opinion.For example, 2-norm is correctly caught.
This is even worse because now it reassures that the command is checking Hardy spaces. Matlab being matlab again.