the problem to generate a matrix in C + + code by Matlab coder
7 views (last 30 days)
Hello every one, I wish that you are very nice, because me I dont think that I am :( .
Since a week , I had try to generate a C++ code from code Matlab using Matlab Coder. So I defined a function on Matlab, and it has a (matrice , double) like Input (Of course I defined the type of Matrice in tollbox properties of Matalb coder) and returned a function has same dimension and type like Input matrice, But the problem, the code generated by Matlab coder, has a function that it has a Array (3*3) like input and output parameter.
so I ask If it possible that make it generated Matrice as it define in Matlab code ?
Thank you in advance for your help
Fred Smith on 24 May 2012
There is no way to get MATLAB Coder to generate multi-dimensional arrays in C. This usually is not a practical problem. For most purposes A and A and *A behave largely the same in C. For example you can pass any one of these to a function expecting any of the others.
Why do you care about the format?