Matlab Coding Resources


Textbooks

These books from the publisher Springer describe the use of Matlab in Earth Science related settings, and are available as "free" PDFs from our campus library. You can download them from below to your own computers.

Getting comfortable in the Matlab Environment

You can install Matlab on you personal computer → you need a Matlab account (using your Cal Poly email), and a good internet connection!

When Matlab is open, we can exmaine the interface: Command Window, Command History, Directory Browser, Workspace (variable windo). The toolbar strips also have a lot of functionality we will examine as needed.

Some basic interactions with Matlab

Basic Coding Principles

The following principles are common amongst essentially all programming languages whether they are designed primarily for computational programming or not. In our case you might consider languages such as R and RStudio, (Scientific) Python, and Julia to be "peer languages" to Matlab.

Remember, Matlab also has a near syntactic clone called Octave (but with less functionality), as well as SciLab, which has a very similar language syntax but does not specifically try to clone Matlab. Both of these are free to download and use.

Common Coding Principles

Computational Notebook concept: Matlab's Live Editor

Matlab's Live Editor or Computational Notebook allows you to combine code, code output (incl. figures), text formatting, mathematical notation, tables, etc.

This file can also be shared for others to interactively use, and exported to a variety of formats incluing html (make a quick webpage), PDF, etc.




Back to the GEOL 3301 Homepage