Oklahoma State University

SOIL 5110: Intro to Matlab Programming

This course is intended for students that have little or no programming experience and are interested in acquiring basic programming  skills that can be applied to any programming language. The course will focus on understanding programming logic by developing codes for common tasks related to crop and soil science, ecology, and environmental science.

 

Course flyer

Course syllabus

 

Course Resources

Wavelab and reproducible research

Hutton et al. (2016)

Coding framework

Case study of the coding framework

Good programming quotes

Inspirational video

Matlab Central

Matlab online glossary

 

Awareness Test 1

Awareness Test 2

 

Functions and Scripts

Scripts_vs_Functions

Function Basics

Getting_Started

one2hundred

LollatoImportData

sphereVolfun.m

sphereVolScript.m

Descriptive_stats_linear_models

 

Files

countryAreaPop.xlsx

LahomaTemp.dat

cornBiomass.xlsx

Simplified water balance

co2MaunaLoa.txt

MultipleLinearRegress

 

Links to Doug's Blog 

Import and process data from Excel

Using and removing NaN in plots

Plotting non uniform data

Reshape a matrix without using a for loop

Curiosity's seven minutes of terror (500,000 lines of code!)

Five good programming habits

Ten bad programming habits

Storing data in a loop

Document Actions