Examples
Just in case, see disclaimer of warranty.
Also see some examples here, but many are coming soon.
intro.m 
An introduction to the MatLab programming, the most useful codes 
Regression analysis
Miscellaneous
Utilities
How to write Matlab codes
Devoted to C++ and VS programmers
 Matlab is very simple. There are no projects, no compilations and no libraries.
 There are command window, mcode window, path list and help.
 If you want to use a toolbox function, just use the function name in your code.
 There are no name collisions. The old name just dies when reloaded. Remember this pity fact.
 And keep the path list (see the main menu) up to date.
 Please search the help before making an algorithm. You will save lot of time.
 Then please search internet (specialpurpose cites and wikipedia are highly recommended). There are the other researchers who make code, too.
 Do not afraid of using complicated algorithms. Often classification, scaling, regression, optimization is no more than one line of the code. It is not expensive.
 Your function help must be bright.

 The first line shortly explains the purpose of the function.
 The second one may name the function with inout arguments.
 The next describes variants of usage or arguments formats.
And the example is essential. One can run your function using your help example.
 Make short examples of what you are doing and keep it to the future.
 Store useful functions in a repository. And comment them well.
 If you are making a large project, think how to organize functions in a proper way.
 Study all data structures of Matlab. There are plenty.
 Avoid 'for' when possible. Say, to multilply each column of a matrix A by constants x is A*diag(x), there is no 'for'.
 To be continued. Good luck!
Disclaimer of warranty
We make no warranties, express or implied, that the programs contained in this resource and calculated indices are free of error, or are consistent of any particular standard of merchantability, or that they met your requirements for any particular application. They should not be relied on for solving a problem whose incorrect solution could result in injury to a person or loss of property. If you do use the programs and the indices in such manner, it is at your own risk. The authors and disclaim all liability for direct or consequential damages resulting from your use of the programs and indices.