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.