【发布时间】:2014-11-18 21:20:25
【问题描述】:
我有一个 FFT,我想将其保存到 .mat 文件中,然后从该 .mat 文件中读取它。我想将我加载的数据用于一个部门。这是我的代码
save ('file_fft','a_fft');
b = load ('file_fft');
c = abs (d_fft) ./ abs (b);
在我的命令窗口中,我看到了
b = file_fft [4000 * 1 double].
然后我收到错误消息
'Undefined function 'abs' for input arguments of type 'struct''
我在删除 abs 后尝试过。我收到了这个错误
'Undefined function 'rdivide' for input arguments of type 'struct''
有没有人知道为什么它不起作用以及我该如何解决?
【问题讨论】:
-
你能把最后一行换成
c = abs (d_fft) ./ abs (b.file_fft);再试一次吗?
标签: matlab file fft complex-numbers mat-file