Scripts and Functions

Here are some example scripts and functions to help you understand the class material (right click, save as).  Bundled functions or those requiring media files have been zipped together.

Back to Index

Conditionals

andyor.m day.m daystr.m
daze.m grades.m pf.m

pf1.m

weird.m  

 

Iteration

addValue.m circ.m circle.m
destruct_o_max.m dumb.m raincount.m
raincount1.m schvector.m  


Matrices

rot.zip    

 

Recursion

fact.m fib.m isPal.m


Plotting

cube.m curves.m cylinder.m
demo.m flywheel.m island.m
kleinBottle.zip pyramid.m qroots.zip
rainfall.m rotateBodies.m sombrero.m
sphere.m subp.m transmission.m
world.zip    

 

Images

diagMirror.m edges.zip imgresize.m
MaskingandManipulation.zip pictures.zip  


File IO

atlanta.zip    

 

Sounds

apollo.zip basics.m decodegarble.zip
ifilter.zip pilot.zip play.m
plotFFT.m ransom.zip scale.zip
showwhistle.m synthesize.zip wedontcare.zip
wreck.zip    


Sorting

insertionsort.m mergesort.m quicksort.m
selectionsort.m sortplot.zip sorttest.zip

 

Object Oriented Programming

oo-archive.zip OOinMatlab.zip  


Data Structures

BST.zip checkout.m lltest.m
printAll.zip    

 

Applications

nim.zip    


Miscellaneous Functions

badscript.m badswap.m cone.m
cooling.m cyl.m discrim.m
Espacefromearth1.pps f.m fx.m
goodscript.m intercept.m intercepts.m
largest.m rocket_done.m rocket_start.m
roots.m sin2.m swap.m
swap_whoa.m    



Compiled by Mark Yuan and Katie Zhang ^.^
December 2005