Create a frequency-response data model.
The data file AnalyzerData
has column vectors freq
and resp
. These vectors contain 256 test frequencies and corresponding complex-valued frequency response points, respectively. The default frequency units of sys
is rad/TimeUnit
, where TimeUnit
is the system time units.
Change the frequency units.
The FrequencyUnit
property of sys1
is rpm
.
Compare the Bode responses of sys
and sys1
.
ans =
Legend (sys, sys1) with properties:
String: {'sys' 'sys1'}
Location: 'northeast'
Orientation: 'vertical'
FontSize: 8.1000
Position: [0.8059 0.8583 0.1486 0.0884]
Units: 'normalized'
Use GET to show all properties
The magnitude and phase of sys
and sys1
match because chgFreqUnit
command changes the units of frequency points in sys
without modifying system behavior.
Change the FrequencyUnit
property of sys
to compare the Bode response with the original system.
Changing the FrequencyUnit
property changes the system behavior. Therefore, the Bode responses of sys
and sys2
do not match. For example, the original corner frequency at about 2 rad/s changes to approximately 2 rpm (or 0.2 rad/s).