Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is for MATLAB I want to plot functions over the interval from 0 to T where

ID: 3195413 • Letter: T

Question

This is for MATLAB

I want to plot functions over the interval from 0 to T where T is 0.005. s1 needs to be from 0.1T to T s2 needs to be from 0.3T to T s3 needs to be from 0.5T to T When the intervals overlap, the functions need to to combine. So need s1 from 0.1T to 0.3T, s1+s2 from 0.3T to 0.5T, and s1+s2+s3 from 0.5T to T. This is what I have, but I'm not quite sure how to plot it. How do I specify the 3 intervals when plotting? Also, how do I add axis/title labels to the graph? t = [0 : 0.005) ; s1 (0.4"cos(2*p*(1.9*10^9).*t s2 = (0.5"cos(2*pi" (1.9*10^9) . *t s3 = (0.4*cos(2*p"(1.9*10ng).*t s12 = s1 + s2; s123 = s1 + s2 + s3; plot (t,s1,t, s12,t, s123); 1.05"pi))/1000; 0.95*pi))/1000; 1.1*pi))/1000; - - -

Explanation / Answer

From the given

First we have to Add tittle lables to the graph

we have add lables as xlabel and ylabel

and title  in the graph

t = [0:0.005]

s1=( 0.4 *cos (2* pi *(1.9*10^9 ) . *t - 1.05*pi)) /1000;

s2 = ( 0.4 *cos (2* pi *(1.9*10^9 ) . *t - 0.95*pi)) /1000;

s3 = ( 0.4 *sin (2* pi *(1.9*10^9 ) . *t - 1.05*pi)) /1000;

s12 = s1+s2;

s123= s1+s2+s3;

plot(t ,s1,s2,s3,s12,s123);

title(' Interval time')

xlabel('time(sec)')

ylabel('Amplitude')

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote