1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2000 - 2016 - INRIA - Serge Steer <serge.steer@inria.fr>
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="freson">
18 <refname>freson</refname>
19 <refpurpose>peak frequencies</refpurpose>
23 <synopsis>fr=freson(h)</synopsis>
26 <title>Arguments</title>
32 A siso linear dynamical system, in state space, transfer function or zpk representations.
39 <para>vector of peak frequencies in Hz</para>
45 <title>Description</title>
47 returns the vector frequencies at which the response
48 amplitude of a siso dynamical system is a relative maximum
49 also called resonance frequencies.
54 <title>Examples</title>
55 <para>Continuous time system</para>
56 <programlisting role="example"><![CDATA[
57 h=syslin('c',-1+%s,(3+2*%s+%s^2)*(50+0.1*%s+%s^2));
60 fig=gcf();sca(fig.children(2));
61 [phi,db]=phasemag(repfreq(h,fr));
65 h=syslin('c',-1+%s,(3+2*%s+%s^2)*(50+0.1*%s+%s^2));
68 fig=gcf();sca(fig.children(2));
69 [phi,db]=phasemag(repfreq(h,fr));
72 <para>Discrete time system</para>
73 <programlisting role="example"><![CDATA[
77 fig=gcf();sca(fig.children(2));
78 [phi,db]=phasemag(repfreq(hd,fr));
83 h=syslin('c',-1+%s,(3+2*%s+%s^2)*(50+0.1*%s+%s^2));
87 fig=gcf();sca(fig.children(2));
88 [phi,db]=phasemag(repfreq(hd,fr));
92 <refsection role="see also">
93 <title>See also</title>
94 <simplelist type="inline">
96 <link linkend="frep2tf">frep2tf</link>
99 <link linkend="zgrid">zgrid</link>
102 <link linkend="h_norm">h_norm</link>
106 <refsection role="history">
107 <title>History</title>
110 <revnumber>6.0</revnumber>
112 <para>handling discrete systems and zpk
113 representation, peak detection improved.