Matlab examples 3 (rebased onto develop)



This is the same as gh-1313 but rebased onto develop.

----

Final set of changes of the Matlab examples for the Paris Users Meeting
- cleaned most of the remaining m files to make them pass
- update license headers
- replace linearize.m function by inline anonymous function

Only function that was not properly checked is the WriteData.m. This function will be full rewritten with staging changes for 4.4.9 that are currently on the dev_4_4 branch