BME113L_graphics - This M-file is to accompany the second lecture on Matlab for BME 303 This script has not been tested use it carefully Basic

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

View Full Document Right Arrow Icon
% This M-file is to accompany the second lecture on Matlab for BME 303 % % % This script has not been tested - use it carefully. % % Basic Graphics disp('Create data for basic 1-D graphics********************************') disp('A=9'), A=9; disp('f=2'), f=2; disp('t=0:0.01:2'), t=0:0.01:2; disp('tau=0.5'), tau=0.5; disp('g=A*exp(-t/tau).*sin(2*pi*f*t);'), g=A*exp(-t/tau).*sin(2*pi*f*t); disp('g2=A*exp(-t/tau).*cos(2*pi*f/2*t);'), g2=A*exp(-t/tau).*cos(2*pi*f/2*t); pause disp('Display g(t) ****************************************************') pause disp('figure'), figure pause disp('plot(g)'); plot(g) pause disp('plot(t,g)'), plot(t,g) pause disp('plot(t,g, ''r'')'), plot(t,g, 'r') pause disp('plot(t,g, ''ro'')'), plot(t,g, 'ro') pause disp('plot(t,g, ''rx--'')'), plot(t,g, 'rx--') pause disp('plot(t,g, ''r--'')'), plot(t,g, 'r--') pause disp('Plotting multiple datasets ***************************************') disp('plot(t, g)'); plot(t, g) disp('hold on'); hold on disp('plot(t, g2)'); plot(t, g2, 'r.') pause
Background image of page 1

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

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

This note was uploaded on 02/01/2011 for the course BME 113L taught by Professor Emelianov during the Spring '11 term at University of Texas at Austin.

Page1 / 2

BME113L_graphics - This M-file is to accompany the second lecture on Matlab for BME 303 This script has not been tested use it carefully Basic

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

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