C++ on MATLAB editor
2 views (last 30 days)
Show older comments
Morris
on 15 Mar 2014
Commented: Walter Roberson
on 15 Mar 2014
Hello All!
I'm looking for a way that: How can I write a C++ code on the MATLAB editor (instead I will write the script in m-file editor).
Is there anyone here who knows how can I do this?
Thanks Morris.
0 Comments
Accepted Answer
Walter Roberson
on 15 Mar 2014
The editor doesn't care what you write in it. You might want to turn off syntax checking through.
0 Comments
More Answers (1)
Morris
on 15 Mar 2014
Edited: Morris
on 15 Mar 2014
1 Comment
Walter Roberson
on 15 Mar 2014
You could consider calling "mex". Use the -c option if you want to compile an individual .cc or .C file to object code. mex normally creates what is really a DLL. If you want to build a complete .exe from the C++ you could system() the linking call after everything is compiled.
Or you could just system() the compilation call directly.
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!