0

当我尝试通过 HDL 编码器进行转换时收到此错误消息。有人能帮我吗?谢谢!

function [p_max,t_max]=ricmax(g,fs)


    valmin=0.40*max(g);                
    [p_max,t_max]=findpeaks(g,'minpeakheight',valmin);
    t_max=t_max/fs;


    end

错误:

??? Expected Y to be one of these types: double, single.
Instead its type was embedded.fi.

输入信号:

fs=1000;
g=sin(1:10)*rand(10);
4

0 回答 0