Pre_Lab_15_joshdean_ECE_3220_PRELAB_15_Joshua_Dean

Pre_Lab_15_joshdean_ECE_3220_PRELAB_15_Joshua_Dean - zz =...

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

View Full Document Right Arrow Icon
Joshua Dean ECE 3220 PRELAB 15 2-28-2011 100/100 3.1 Symbolic Variables syms v t A omega phi %definition of symbolic variable v=A*cos(omega*t+phi) %definition of symbolic equation 3.2 Symbolic Integrals and Derivatives Shows how MATLAB can integrate and differentiate syms t A omega phi xt = int(A*tˆ3 + pi, t) xt = (A*t^4)/4 + pi*t yt = diff(A*cos(omega*t + phi), t) yt = -A*omega*sin(phi + omega*t) zz = int(A*cos(omega*t + phi), t, 0, 1/omega)
Background image of page 1

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

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

Unformatted text preview: zz = (A*(sin(phi + 1) - sin(phi)))/omega zsimp = simple(zz) zsimp = (A*(sin(phi + 1) - sin(phi)))/omega 3.3 Substituting Variables v1 = subs(v, {A,omega,phi}, {100,120*pi,0}) v1 = 100*cos(120*pi*t) tn = (0:0.01:1)/60; v1n = double( subs(v1,t,tn) ); %-- convert to numeric Joshua Dean ECE 3220 PRELAB 15 2-28-2011 plot(tn, v1n) Plot Figure 1 ezplot(v1, [0,1/60]) EZPLOT Figure 2...
View Full Document

This note was uploaded on 11/14/2011 for the course ECE 3220 taught by Professor Conover during the Fall '11 term at GWU.

Page1 / 2

Pre_Lab_15_joshdean_ECE_3220_PRELAB_15_Joshua_Dean - zz =...

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