Matlab hdl coding

140 Views Asked by At

I received this error message when I try the conversion via HDL coder. Can someone help me? Thank you!

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

error:

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

Input signal:

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

There are 0 best solutions below