GUI with Matlab - Outline

7 downloads 46674 Views 894KB Size Report
4. Creating GUI using GUIDE .... 16. Animation. Matlab provides two ways of generating moving, animated .... GUIDE is Matlab's Graphics User Interface (GUI) .
Technion – Electrical Engineering Department

May 2004 Signal and Image Processing Laboratory

Written By: Yair Moshe

1

GUI with Matlab - Outline 1. 2. 3. 4.

Basic Graphics Animation Handle Graphics Objects Creating GUI using GUIDE

2

1

1. Basic Graphics • • • • • • •

2-D Plotting The Figure Window Data Statistics & Curve Fitting Subplots & Scales for Axes Specialized Plotting Routines 3-D Plotting Images 3

2-D Plotting x=0:.1:2*pi; x=0:.1:2*pi; y=sin(x); y=sin(x); plot(x,y) plot(x,y) grid grid on on hold hold on on plot(x, plot(x, exp(-x), exp(-x), 'r:* r:*')) axis([0 axis([0 2*pi 2*pi 00 1]) 1]) title( title('2-D 2-D Plot Plot')) xlabel( ' Time xlabel( Time')) ylabel( ylabel('Sin(t) Sin(t) ')) text(pi/3, text(pi/3, sin(pi/3), sin(pi/3), '

Suggest Documents