Convert Code from .m to .c
1 view (last 30 days)
Show older comments
I am trying to convert my .m code into .c by building MEX file. Now for following loop it is giving me error for n. I already defined n as extrinsic.
for i=1:(n-1);
Fend=kron(Fend,F);
end;
Error: Expected either a logical, char, int, fi, single, or double. Found an mxArray. MxArrays are returned from calls to the MATLAB interpreter and are not supported inside expressions. They may only be used on the right-hand side of assignments and as arguments to extrinsic functions
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!