[英]How to find the bode plot of a matrix in matlab?
我正在嘗試使用FFT方法查找一組輸入輸出數據的系統傳遞函數。 我要遵循的算法如下:
我的代碼是:
load testdata.mat; // testdata is a 2 column matrix (1001x2 matrix)
input = fft(signal(:,1)); // FFT of input data (1001x1 complex matrix)
output = fft(signal(:,2)); // FFT of output data (1001x1 complex matrix)
fft_ratio = output/input; // (1001x1001 complex matrix)
fft_ratio_mag = abs(fft_ratio); // (1001x1001 matrix) except column 1, all other columns have '0' data
bode(fft_ratio_mag(:,1))
我收到以下錯誤:
Error using bode (line 84)
Not enough input arguments.
請指導我如何執行上述算法中的第4步和第5步。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.