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&&
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 03: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.
Thanks for your comments.... seems I just have to work on it manually. You know C++ is more complicated