Hello everyone...I'm having a bit of a fix here. How do I convert a matlab source code to C++?? Any ideas?? My code is attached. Thx&&
This is a discussion on How do I convert from Matlab to C++ within the C++ Programming forums, part of the General Programming Boards category; Hello everyone...I'm having a bit of a fix here. How do I convert a matlab source code to C++?? Any ...
Hello everyone...I'm having a bit of a fix here. How do I convert a matlab source code to C++?? Any ideas?? My code is attached. Thx&&
Last edited by Daive; 12-10-2011 at 02:55 PM.
Learn C++ and it should be a simple matter. I don't think there exists any tool that converts MatLab code to C++, partly because it would depend much on the way the code is supposed to be implemented. But I may be wrong.
I also know that there exist many C++ linear algebra libraries (which you will probably need if your original code is written in MatLab) for doing vector and matrix operations, calculating properties such as the norm and extraction of eigenvalues, libraries that support lazy evaluation, etc. Armadillo seems (according themselves) to be one of the fastest on doing basic matrix operations.
+1 for learning C++.
But if you thought you could just drop your assignment and expect a complete answer, you're in the wrong place.
Instead, go here -> vWorker.com: How work gets done. Guaranteed!
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Thanks for your comments.... seems I just have to work on it manually. You know C++ is more complicated