FRF magnitude calculation
古いコメントを表示
Hello all!
I have a question regading the caluculation of FRF magnitude spectra that I would really appreciate some help with.
I have a number of files, each containing single sided FRFs with the real part in the first column and the imaginary part in the second. The question is how to obtain the magnitude spectra. Does this work in the same way as for a FFT, i.e. i take abs(re+im), to get the magnitude, or do I simply extract the real part (first column) from the file?
This might seem as a trivial question, but I'm having real trouble finding a good answer.
Regards, Felix
1 件のコメント
Hector Aguila
2019 年 1 月 29 日
La magnitud de la transformada se calcula sacando el valor absoluto del complejo que la representa, y la potencia espectral se calcula como el cuadrado de la magnitud de la transformada.
採用された回答
その他の回答 (1 件)
Dr. Seis
2012 年 1 月 4 日
Or... if you want the magnitude and the input data is really just two columns of numbers(second column not specifically formatted as imaginary), then
data = % Read in data
data_mag = hypot(data(:,1),data(:,2));
3 件のコメント
Felix Torner
2012 年 1 月 4 日
Dr. Seis
2012 年 1 月 4 日
The magnitude is the length of the vector and the phase is the angle of the vector when complex value is plotted on a grid where the x-axis is the real part and the y-axis is the imaginary part. So... if
data_complex = complex(data(:,1),data(:,2));
Then,
data_mag = abs(data_complex);
data_phase = angle(data_complex);
Felix Torner
2012 年 1 月 4 日
カテゴリ
ヘルプ センター および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!