[英]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.