How Does MATLAB Compare to C++ in Computational Physics?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
sapiental
Messages
110
Reaction score
0
Hello,

I have to write a MATLAB program for a problem that utilizes a M-function. I was curious if you guys knew of any good websites that have some sample code for such problems.

Also, I am somewhat familiar with programming in C++. How much does MATLAB differ from this language?

Any help is greatly appreciated.

Thanks.
 
Physics news on Phys.org
Matlab central is one pretty solid place to start :

http://www.mathworks.com/matlabcentral/

...there are lots of tutorials out there about m - files (google and take your pick, or if someone else has an opinion about what is 'best' ...), and MATLAB documentation is a good reference to use as well.