File Exchange

image thumbnail

Experiments with MATLAB

version 1.3 (2.14 MB) by Cleve Moler
Apps from Experiments with MATLAB


Updated 23 Feb 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Experiments with MATLAB is an electronic book with chapters that supplement high school and early college courses in mathematics and technical computing, including calculus and matrix theory. The expected background includes algebra, trigonometry, and some familiarity with computers.
This app includes 20 interactive applications from the book which help readers explore a wide range of mathematical concepts through interesting applications.
The entire textbook and additional supporting code is available for free download:

Cite As

Cleve Moler (2020). Experiments with MATLAB (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (68)

Students and Educators are in debt with you. Thank you very much.

Thank you.

zuoya gu

xiyao wang

thank you very much!

Thanks for sharing, my honor to learn.

T wang

anzhi wang


Thank you cleve, really appreciate the work put itto making this ebook. Really useful for students wanting to become more exprienced in matlab and maths in general. I find it really diffucult to put words how much I appreciate the effort you put into making this ebook, for the of beterment of learning matlab.

noel isco

John Isingo

An Excellent resource. I'm hoping someone can explain why Chapter 17 in the book, where the logic behind the orbits simulation is described, includes the Gravitational Constant in the calculations, but the constatnt doesn't appear in the code (orbits.m)? Perhaps he is using "Natural Units" where G=1, but that is only my speculation.

william lee


Joy Tea

Thanks for your sharing.

jinrong fan

so nice! Thanks


many thanks to you. the codes help me a lot.


many thanks for sharing!




fibonacci(72)=806515533049393. For n>72 round-off values are shown: fibonacci(73)=1.30496954492866e+015. Both obtained by 'format long g'. Cheers



It may be missing surfer.m in the Chapter.7?
What a pity...

lian xiang


Junjie Lew

Yong Zhang

Great Book! Great Man! Thank you.

Thanks very much for sharing!


so nice

bo feng

thanks for sharing!

Thanks for all

thanks a lot


Thanks a lot for the sharing material.


Liu Huayuan

thanks a lot

China Wan

Thank you

wj jin


Wow! Absolutely beautiful. Thank you.

duan duan


(correcting my previous)

orbits.m calls upon zoomer and tracer but does so through callbacks specified as strings, but those kinds of callbacks are executed from the base workspace and do not know about functions whose source is given in the same file. The fix is to switch to function handles. Change lines 214 to 219 to become

uicontrol('string','trace','style','toggle','units','normal', ...
'position',[.34 .02 .06 .04],'callback', @(src,event) tracer(), 'value',0);
uicontrol('string','in','style','pushbutton','units','normal', ...
'position',[.42 .02 .06 .04],'callback', @(src,event) zoomer(1/sqrt(2)))
uicontrol('string','out','style','pushbutton','units','normal', ...
'position',[.50 .02 .06 .04],'callback', @(src,event) zoomer(sqrt(2)))

orbits uses zoomer.m and tracer.m which appear to be missing. I think I found zoomer on an older version of this toolbox on pudn but I cannot seem to find tracer anywhere.

Alvin Chen

very good materials

Alvin Chen

very good materials

Excellent e-book.

Excellent & Superb.

Prof (Dr) BP Mishra (Ex-IAF)
BE (IE-I), M. Tech (MNNIT-A), MBA(IBM-K), PhD-Engg (CU, JMI)
Dean (Admin) & Head (Academic)-EC
NIET, Greater Noida
Phone: 0120-4981178
Mobile: +91 9971656287


Thank you for sharing

ling li

Grateful, thank you all, thank you Cleve

the drought was the very worst

chenxu zhou

Excellent! The zip code package is really convenient.

quanwei liu

thank you for sharing

Yibing Wu

Thank you


Thank you


Just one thing: THANK YOU!

Awesome stuff

liang wang

Thank you

gud one


Thx it's very good



Add App

Add App

Add App


Update for R2014b and HG2

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Cleve_Lab