When porting a complex MATLAB application to an embedded platform running native C, is the MATLAB-to-C code generation efficient and useful to get a (slow) starting point that I can then profile and optimize, or am I better off writing my application in C from scratch despite the added complexity of having to rewrite the entire code in C manually?
My concern is that MATLAB being vector-oriented, the generated C-code may just be so remote from how one would write code in C that I am just going to waste time trying to generate any code automatically and never actually use any of the generated code.