quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryهندسة كهربائية schoolبكالوريوس event_available2026-07-14

السؤال

Transcribed Image Text:

MATLAB Commands used in this LAB heaviside(), axis(), subplot (2,1,n), plot(t,x), for loop. Unit Step Function The unit step function has 2 primary uses. The first is that you use it to represent a constant input, and the second is that we use it to represent whether or not a signal is turned on or off at a certain time. You can refer to the notes from the 4th of June to see what I mean by that. Problem 1 For this part of the lab, use the heaviside() command in MATLAB to plot the unit step function. For an input vector of t, use values of t from 0 to 1 second, with a spacing of le - 3 between them (1 ms). Make sure you are using the axis(min Emax Ymin Ymaz]) so that the meaningfu data does not intersect with the top or bottom of the plot. Thank you. Problem 2 Okay so that's the unit step function. I'd like you now to turn a sine wave on and off, just like we did in the notes last class. Write a function using the heaviside() command that turns on a unit step at t = 2, and then turns it back off at t = 4, then it will turn on a unit step function again at t = 6, and back off at t=8, and then again on at t 10, and off again at t = 12. For this problem, use a time vector from 0 to 14, and a spacing between the datapoints 3 again. Also call this variable that you are creating "x1" of le - =

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top