Matlab coder error:All inputs must be constant

when I try to convert the function firls into C++ code,it shows function call failed , all inputs must be constant, and I really need to give the function different inputs, how can I define the inputs variable and convert it into C++ by Matlab coder?

Answers (1)

Have you solved this problem?I searched for a long time but couldn't find a solution

1 Comment

Hi Shanshan, did you find a solution ? I am facing the same problem atm.

Sign in to comment.

Asked:

on 29 Jan 2018

Commented:

on 17 Jul 2020

Community Treasure Hunt

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

Start Hunting!