MATLAB: “This kind of expression is not supported”

ccoder

Quick question…
If I receive that error when using coder to convert my MATLAB code to C, am I S.O.L when it comes to having MATLAB write it in? I'm assuming I'd have to re-write any lines of code that receive that on my own in Visual Studio.
Thanks! You guys are great!

Best Answer

@ is not always just a shortcut. @ can "capture" the value of variables at the time that the @ is executed. C and C++ do not have the automatic equivalent to that (but that functionality could be hand-coded in C or C++ if it was needed)