ECE 301 - Project 1 - Basic Computations and Plots

ECE 301 - Project 1 - Basic Computations and Plots - clear...

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

View Full Document Right Arrow Icon
Introduction In this project, we will ultimately be refreshing our previous knowledge of MATLAB functions, coding styles, and processes. By going through a few introductory problems, we are able to fall back into our routine of coding in MATLAB and we are able to pick up on processes previously learned in our past classes. The main problem we will be working today is a simple function plotted using specific time constraints as follows: Plots a) x(t) = 6e −3t sin(2π8t) b) z(t) = 4e −10t cos(2π40t)
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 301 1/24/11
Background image of page 2
MATLAB CODE
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: clear delta_t = .0002; t_final = 1; time = 0 : delta_t : t_final; A_ex = 6.0; A_sx = 1.0; b_x = -3; freq_x = 8; A_ez = 4.0; A_sz = 1.0; b_z = -10; freq_z = 40; x_of_t = A_ex .* exp(b_x .* time) .* A_sx .* sin(2 .* pi .* freq_x .* time); z_of_t = A_ez .* exp(b_z .* time) .* A_sz .* cos(2 .* pi .* freq_z .* time); subplot(2,1,1) plot(time, x_of_t) xlabel( 't' ), ylabel( 'x(t)' ), title( 'Plot of x(t)' ), grid on subplot(2,1,2) plot(time, z_of_t) xlabel( 't' ), ylabel( 'z(t)' ), title( 'Plot of z(t)' ), grid on...
View Full Document

This note was uploaded on 01/28/2012 for the course ECE 301 taught by Professor Hoozturk during the Fall '08 term at N.C. State.

Page1 / 3

ECE 301 - Project 1 - Basic Computations and Plots - clear...

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

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