ECE 301 - Project 1 - Basic Computations and Plots

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

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

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)

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

View Full Document
ECE 301 1/24/11
MATLAB CODE
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

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern