MATLAB

by

Although it creates bulky AVI files, MATLAB can relatively easily make movies of animated figures. The code below prototypes how this is done. % define the number of frames in your movie numberOfFrames = 1200; % use a loop to generate frames of the movie for ii = 1:numberOfFrames % insert code to update data

by

Use a terminal command like the following to runs a MATLAB script in the background under Linux, Mac OS X, etcetera. nohup matlab -nodisplay < runProgram.m > outputFile & The nuhup command tells the OS to ignore hangups so the user who enters this command can log out and the program will still be running

by

On one warm spring afternoon during grad school when I should have been outside enjoying nature, I stayed in the lab and wrote the following MATLAB script. It will take any 8-bit RGB image and convert it to colored HTML text; any text. As an example of its application I have emblazoned my favorite positronic

by

For a recent project one of my research students needed to generate exponentially distributed random numbers in MATLAB. The Statistics Toolbox has a built-in function to do this, but I don’t have a license for this toolbox. Below is the code we wrote. It performs a log transformation to convert a uniformly distributed random number

by

Purpose: This exercise is a brief introduction to MATLAB for students who want to use MATLAB for research projects. You will familiarize yourself with the MATLAB command line and editor. You will learn the difference between a script and a function. Some programming elements such as loops and conditional statements are introduced as well as