필터 지우기
필터 지우기

Change bode frequency units with idfrd data

조회 수: 8 (최근 30일)
Christophe
Christophe 2013년 2월 9일
Hello,
I have a problem to change the frequency units of my bode plot. I am using the function iddata in order to convert the time series data. After I am using the etfe function in order to change the iddata into a function transfer. I am trying to plot the bode with the frequency units in Hz but it odes not work, it stays in rad/s.
Here is the sample code :
DATA = iddata(y, x, 0.001); %x is the input data and y the output
G = etfe(DATA,[],15001); %G is a idfrd data qnd 15001 is the data number
G = chgunits(G,'Hz'); %change units of the transfer function to see if it
%affects the bodeplot
P = bodeoptions;
P.FreqUnits = 'Hz'; %set the bode options frequency units in Hz
bode(G,P); %Try using bodeplot instead but get the same results
Thank you in advance, it would be very helpful if someone could help on this issue.

채택된 답변

Arkadiy Turevskiy
Arkadiy Turevskiy 2013년 3월 18일
G = chgunits(G,'Hz')
does it for me in R2013a.
You can also right click on the bode plot, Properties, Units, and set units there.
If none of this work, we would need to know the version number of MATLAB you are using. You can also submit a help request here.
Arkadiy

추가 답변 (1개)

Christophe
Christophe 2013년 3월 19일
Thank you for your answer, I think it was a version problem, I was using 2007b.

카테고리

Help CenterFile Exchange에서 Analyze Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by