Alignsignals not supported for C code generation
显示 更早的评论
Hello everybody,
I am trying to align signals with Matlab function that is supported for C generation according to its website. But, when I open the Coder says that is not supported. Does anyone know how to fix this problem? If I have to make my own function, can anyone tell me where i can fin a good implementation?
Thanks in advance,
Javi
2 个评论
What version of Matlab are you using? For some reason that function's help page does not say when it was introduced as most do, though I know it was recent. It is possible that the version it was introduced it was not supported for C code generation, but has been made so in subsequent versions (my help for R2017a says it is supported). If you have an earlier version that could be the cause.
It is basically just a wrapper function for some simple functionality based on xcorr though, with a huge amount of validation and argument checking added in to make it look more complicated than it is! Find the lag giving the best correlation and move one or other signal by the appropriate amount. I haven't used alignsignals myself so I don't know what options it has for dealing with the ends of signals that are not matched and any other issues, but you can easily handle those for your own usage.
Javier Naranjo
2017-8-18
编辑:Javier Naranjo
2017-8-29
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!