gui - Technion Electrical Engineering Department May 2004...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1 Written By: Yair Moshe Technion – Electrical Engineering Department Signal and Image Processing Laboratory May 2004 2 GUI with Matlab - Outline 1. Basic Graphics 2. Animation 3. Handle Graphics Objects 4. Creating GUI using GUIDE
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 3 1. Basic Graphics • 2-D Plotting • The Figure Window • Data Statistics & Curve Fitting • Subplots & Scales for Axes • Specialized Plotting Routines • 3-D Plotting • Images 4 2-D Plotting x=0:.1:2*pi; y=sin(x); plot(x,y) grid on hold on plot(x, exp(-x), 'r:*' ) axis([0 2*pi 0 1]) title( '2-D Plot' ) xlabel( 'Time' ) ylabel( 'Sin(t) ' ) text(pi/3, sin(pi/3), '<--sin(\pi/3) ' ) legend( 'Sine Wave' , 'Decaying Exponential' )
Background image of page 2
3 5 Line Characteristics hexagram h dashed -- pentagram p dashdot -. triangle right > dotted : triangle left < solid - triangle up ^ Line Style Specifier triangle down v diamond d black k square s yellow y star * magenta m plus + cyan c x-mark x red r circle o green g point . blue b Marker Style Specifier Line Color Specifier 6 The Figure Window The figure window contains useful actions in its menu and toolbars: Zooming in and out Rotating 3-D axes (and other camera actions) Copying & pasting Plot Edit Mode Property Editor Saving & Exporting – Figures can be saved in a binary .fig file format – Figure can be exported to many standard graphics file formats etc., GIF, PNG, JPEG, TIFF, BMP, PCX, EPS. •P r i n t i n g
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 7 Data Statistics & Curve Fitting • The Data Statistics Tool: – Calculates basic statistics about the central tendency and variability of data plotted in a graph – Plots any of the statistics in a graph • The Basic Fitting Interface: – Fits data using a spline interpolant, a shape-preserving interpolant, or a polynomial up to degree 10 – Plots multiple fits simultaneously for a given data set – Examines the numerical results of a fit – Annotates the plot with the numerical fit results and the norm of residuals 8 Subplots & Scales for Axes subplot(2,2,1) x=0:.1:2*pi; plot(x, exp(-x)) subplot(2,2,2) semilogy(x, exp(-x)) subplot(2,2,3) x=0:.1:2*pi; plot(x, sin(x)) subplot(2,2,4) plot(peaks)
Background image of page 4
5 9
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2011 for the course MATH 571 taught by Professor Staff during the Winter '08 term at University of Michigan.

Page1 / 17

gui - Technion Electrical Engineering Department May 2004...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online