I have some problem that converting MATLAB code to C# code.My experience with C# is very limited and I didn't find a solution of this matter.
Let me explain my scenario. I have a some function to solve the optimization problem. I used "lsqnonlin" function. When I used MATLAB coder in order to convert from MATLAB m-file to dll file, but I have some error messages.
First, I want to import the input data set from "mat" file, so I used "load" function in matlab code. But, code generation result shows "The function 'load' is not supported for standalone code generation. Either change the target to generate a MEX or S-function or use 'coder.load' to load the MAT file at compile time." messages. I want to solve this problem.
Second, when I convert MATLAB function such as "Lsqnonlin" or "load" embedded in MATALB to C# code, I want to know how to do easily. Is it possible to generate C# code through MATLAB coder directly?
Thank you for all about your help.