Matlab Coder error in C++ code generation
显示 更早的评论
I am building a pairs trading module where I am using the following line pfun = @(x) pairsFun(x, DATA1, DATA2, annual Scaling, cost);
this is probably creating a function handle pfun to function pairsfun where the next line [~,param] = parameterSweep(pfun,range);
passes the function as argument to another function parametersweep which loops to find maximum value of a variable. The code is taken from matlab pairs trading module.
The issue is when I am trying to generate codes for C++ using coder the line pfun = @(x) pairsFun(x, DATA1, DATA2, annual Scaling, cost); is generating an error : this kind of expression is not supported.
It would great if someone provides some direction.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Algorithm Design Basics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!