EEL 3552 Experiment 2

docx

School

University of Central Florida *

*We aren’t endorsed by this school

Course

3552

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

9

Uploaded by EarlKomodoDragonMaster811

Report
Experiment 2: MATLAB Sim EEL 3552C: Signal Analysis and Analogue Communication Professor Ismail Alkhouri Joshua Barshay 2/10/23
1.0 Objective The objective of this experiment is to teach the students how to use MATLAB to model different types of function in discrete and continuous forms. 2.0 Equipment A computer with MATLAB installed on it. 3.0 Simulation For question 1 for all simulations the code below was used: t:lower:.1:upper; g=(f(t)); plot(t 1 ,g 1 …t n ,g n ); n=1 for x 1-3 and n=3 for x4. Question 1: X1:
X2: X3:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
X4: Question 2: For question 2 the following code was used: t:lower:upper; g=(f(t)); hold on; stem(t 1 ,g 1 ); stem(t n ,g n ); X1:
X2: X3:
X4: Question 2 part b: For part b the following code was used: x=:lower:.1:upper; t:lower:upper; z=f(x); g=(f(t)); hold on; stem(t 1 ,g 1 ); stem(t n ,g n ); plot(x 1 ,z 1 …x n ,z n );
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
X1: X2: X3:
X4: Question 3: Part 1: For part 1 the following code was used: close all hold on for t=-4:.0005:4 if t<-2 x=t.^2-2.*t+3; plot(t,x,'.-'); drawnow; elseif t>=-2&&t<2 x=4*cos((2*pi).*t-pi/8)+3*sin((2*pi).*t); plot(t,x,'.-'); drawnow; elseif t>=2 x=sin(t)./t; plot(t,x,'.-'); drawnow; end end plot(t,x)
Part 2: For part 2 the following code was used: t=-4:.1:-2; y=-2:.1:2; u=2:.1:4; z=f(t); x=f(y); c=f(u); plot (t,z); plot(x,y); plot(c,u); 4.0 Conclusion This experiment was overall a success as the simulations were able to be completed successfully. In addition the experiment also successfully taught me how to use MATLAB without any prior experience.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help