Publishing MATLAB files - LINKS

NOTE: these files were created in 2012 and last published using MATLAB_R2016a.

Microsoft IE does not view m-files properly. Use another browser like Chrome, Mozilla Firefox or Safari instead.

If you're reading this page, it's probably because you've been asked to "publish" your script file in MATLAB. To do this, you must format your .m file (for example, exampleFile.m) in a specific way and put it in a specific location on your G-drive or other server.

Document explaining publishing and formatting m-files for publishing in more detail (updated January 2018).

  1. basicMFile.html: Basic M File published before formatting
    basicMFile.m
  2. publishMFile1.html: A few sections added to basic M-file
    publishMFile1.m
  3. publishMFile2.html: Title, introductory text added
    publishMFile2.m
  4. publishMFile3.html: Added section title
    publishMFile3.m
  5. publishMFile4.html: Examples of section breaks for displaying output
    publishMFile4.m
  6. publishMFile5.html: Basic example of plots with pause command
    publishMFile5.m
  7. publishMFile5b.html: Modifying output of plots with section breaks
    publishMFile5b.m
  8. publishMFile6.html: Basic example of plots with figure command
    publishMFile6.m
  9. publishMFile6b.html: Modifying output of plots with figure command and section breaks
    publishMFile6b.m
    publishMFile6c.html and publishMFile6d.html: Other examples of figure command and section breaks
  10. publishMFile7.html: Examples of formatting text
    publishMFile7.m