When you develop a C code manually from model, you may need to define parameters in Matlab workspace into the C file. It will be burdensome if you have a 2d array of some big size for example 10*20 or more.
This script converts 1d or 2d double array in Matlab to its respective representation in C.
Mundrathi Venugopal (2021). ml2c_array_float (https://www.mathworks.com/matlabcentral/fileexchange/72485-ml2c_array_float), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!