How to convert matlab code to C code?

1 view (last 30 days)
afef on 14 Jul 2017
Commented: afef on 15 Jul 2017
Hi, i used Matlab for preprocessing EEG signal and i extracted some features fromm it by calculating maximum and minimum amplitude,mean and standard deviation . Also i apply for the EEG signal wavelet transform and i extarcted the energy for the details and approximations coefficient.and now i want to convert the matlab code to c code but i dont know how so can anyone please help me how to do this or give me hint ? Thanks

Accepted Answer

James Tursa
James Tursa on 14 Jul 2017
See this link about the MATLAB Coder:
afef on 15 Jul 2017
I tried the matlab coder but i failed because when it comes to check issues i got errors like this : wavedec is not supported for code generation detcoef is not supported for code generation
this is my matlab code
for n=1:23
result{n} = filtfilt(d1,deriv);
variance{n} = std(result{n},[], 2);
Maximale{n}= max(result{n},[],2);
Minimale{n} = min(result{n},[],2);
energie{n} = {Ea, Ed};
What should i do please?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by