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

AI Thread Summary
For writing a MATLAB program that utilizes an M-function, MATLAB Central is recommended as a valuable resource for sample code and tutorials. Users can find numerous tutorials by searching online or consulting MATLAB's official documentation for guidance on M-files. Additionally, those familiar with C++ may find that MATLAB differs significantly in syntax and structure, but the fundamental programming concepts remain similar.
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.
 

Similar threads

Replies
4
Views
4K
Replies
2
Views
3K
Replies
1
Views
3K
Replies
12
Views
3K
Replies
3
Views
2K
Replies
9
Views
5K
Back
Top