1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vladimir [108]
3 years ago
11

Develop a MATLAB script to generate a 5 panel vertical plot to illustrate how a function changes as the parameters change. On ea

ch plot, display the simple sine wave, y(t) = sin(2πt), as a red line. Then, add the following functions to each of the 5-panels as black lines:

Mathematics
1 answer:
Marat540 [252]3 years ago
3 0

The question is incomplete. Complete question along with Matlab code, explanation, and output results are given below.

Complete Question:

Develop a MATLAB script to generate a 5 panel vertical plot to illustrate how a function changes as the parameters change. On each plot, display the simple sine wave, y(t) = sin(2πt), as a red line. Then, add the following functions to each of the 5-panels as black lines:

y(t) = sin(2πt)  sine function

y1(t)=1+sin(2πt) effect of mean

y2(t)=2sin(2πt) effect of amplitude

y3(t)=sin(4πt) effect of frequency

y4(t)=sin(2πt) - π/4) effect of phase shift

y5(t)=cos(2πt) - π/2) relationship between sine and cosine

Step-by-step explanation:

We are required to show different sinusoidal plots to illustrate the effects of changing mean, amplitude, frequency, phase shift, and relationship of sine and cosine wave.

t=[0:0.01:2*pi] % time vector from 0 to 2pi

y=sin(2*pi*t); % the original sine function  

% effect of mean

y1=1+sin(2*pi*t);  

subplot(5,1,1) % 5 rows, 1 column and last for position

plot(t,y,'k',t,y1,'r')  % this function plots y and y1 with respect to time vector t

% 'k' for black color and 'r' for red color

grid on  

xlabel('time (t)') % x-axis is for time

ylabel('y1(t)')  % y-axis is for function value y(t)

title('effect of mean') % title of the plot

ylim([-3 3]) % limit of y-axis

xlim([0 6]) % limit of x-axis

% effect of amplitude

y2=2*sin(2*pi*t);

subplot(5,1,2)  

plot(t,y,'k',t,y2,'r')  

grid on  

xlabel('time (t)')  

ylabel('y2(t)')  

title('effect of amplitude')  

ylim([-3 3])  

xlim([0 6])  

% effect of frequency

y3=sin(4*pi*t);  

subplot(5,1,3)  

plot(t,y,'k',t,y3,'r')  

grid on  

xlabel('time (t)')  

ylabel('y3(t)')  

title('effect of frequency')  

ylim([-3 3])  

xlim([0 6])  

% effect of phase shift

y4=sin((2*pi*t)-pi/4);  

subplot(5,1,4)  

plot(t,y,'k',t,y4,'r')

grid on  

xlabel('time (t)')  

ylabel('y4(t)')  

title('effect of phase shift')  

ylim([-3 3])  

xlim([0 6])  

% relationship between sine & cosine

y5=cos((2*pi*t)-pi/2);  

subplot(5,1,5)  

plot(t,y,'k',t,y5,'r')  

grid on  

xlabel('time (t)')  

ylabel('y5(t)')  

title('relationship between sine & cosine')  

ylim([-3 3])  

xlim([0 6])  

Output Results:

The first plot shows that sine wave gets shifted to upper side with respect to the original sine wave.

The second plot shows that the amplitude of the sine wave is increased with respect to the original sine wave.

The third plot shows that the frequency of the sine wave is increased. The number of cycles are increased with respect to the original sine wave.

The fourth plot shows there is a phase shift between two waves. The modified sine wave lags the original sine wave by π/4  

The fifth plot shows the relationship between sine and cosine wave.

As we know sin(2πt)=cos(2πt - π/2)

Therefore, both waves are superimposed on each other since they are equal.

You might be interested in
Please do all of number 2 please help (find the angle measurements that are not given
bagirrra123 [75]

The measures of the missing angles are as follows:

a. 145°

b. 43°

c. 36°, 36° and 144°

<h3>How to find angles when lines intersect?</h3>

When two lines intersect, angle relationship can be formed. The angles can be adjacent angles, vertical angles and many more.

Therefore,

a. 180 - 35 = 145 degrees( angle on a straight line)

b. 180- 47 - 90 = 43 degrees(angles on a straight line)

c. 144 degrees (vertical angles), 36 degrees and 36 degrees(angles on a point is 36 degrees)

learn more on angles here:brainly.com/question/17166362

#SPJ1

3 0
2 years ago
The 7th grade class sold 147 tickets for the gala, but the 8th graders sold 327. How many
Artemon [7]

Answer:

The 8th graders sold 180 more tickets

8 0
3 years ago
What is 0.2 as a fraction in simplest form.
LenaWriter [7]
2/10, but reduced would be 1/5.

10 / 2 - 5
2 / 2 - 1
7 0
3 years ago
Read 2 more answers
A certain club has 20 members. What is the ratio of the number of 5-member committees that can be formed from the members of the
grin007 [14]

Answer:

The ratio is 16:5

Step-by-step explanation:

In order to find this ratio, you need to first find out in how many ways you can create 5-member committees and 4-member committees. But before doing so, you need to determine if the order in which you pick the members for the committee, matters or not.

In this case, the order doesn't matter, which means we can use a combination to calculate them. Combinations are found by using the following formula:

_{n}C_{r}=\frac{n!}{r!(n-r)!}

Where n is the number of available items and r is the number of desired items in the group.

So, for the 5-member committees, n will be 20 and r is 5, so the formula will look like this:

_{20}C_{5}=\frac{20!}{5!(20-5)!}

which can now be simplified, so we get:

_{20}C_{5}=\frac{20!}{5!(15)!}

So now we can solve this:

_{20}C_{5}=\frac{20*19*18*17*16*15!}{5*4*3*2*1(15)!}

The 15!'s get cancelled so I get:

_{20}C_{5}=\frac{20*19*18*17*16}{5*4*3*2*1}=15,504 possible groups with 5 members each.

So we can find the number of 4-member committees in the same way, with the difference that r=4 this time. So we get:

_{20}C_{4}=\frac{20!}{4!(20-4)!}

_{20}C_{4}=\frac{20!}{4!(16)!}

which solves to:

_{20}C_{5}=4845

So now that we have the number of possible 5-member committees and the number of possible 4-member committees, we can find the ratio between them, which we will get by dividing the numbers:

15504:4845

which simplifies to

16:5

which means that tere are 16 5-member committees for every 5 4-member commitees.

3 0
4 years ago
A prism is dilated by a factor of 1. 5. How many times larger is the volume of the resulting prism than the volume of the origin
andre [41]

The volume of the resulting prism is 3.375 times of original volume.

<h3>What is a dilation or scale factor?</h3>

The factor by which the dimensions of an object are enlarged is called the scale factor.

Let us take the base area of Prizm = a²

Height of the prism = h

Enlarged area = (scale factor)² * previous area

Enlarged area = 1.5²*a² = 2.25a²

Enlarged height = 1.5h

So, enlarged volume = enlarged area* enlarged height

Enlarged volume= 2.25a²*1.5h = 3.375a²h

Enlarged area/previous area = 3.375a²/a² = 3.375

Therefore, the volume of the resulting prism is 3.375 times of original volume.

To get more about dilation visit to:

brainly.com/question/10253650

3 0
2 years ago
Other questions:
  • A washer and a dryer cost $600 combined. the cost of the washer is three times the cost of the dryer. what is the cost of the dr
    5·1 answer
  • the length of an arc of a circle is 12cm. the corresponding sector area is 108 cm^2 find the radius of the circle ...Someone, pl
    11·1 answer
  • 3. TELEPHONE NUMBERS What is the probability that a 7-digit telephone number with the digits 5, 1, 6, 5, 2, 1 , and 5 is the num
    8·1 answer
  • Can someone please factor this expression 27/x³- 8​
    9·2 answers
  • For the next 20 years, you plan to invest $600 a month in a stock account earning 7 percent annually and $400 a month in a bond
    14·1 answer
  • The sum of two numbers is 10 and the difference is 6. What is the product of the two numbers?
    15·2 answers
  • Find the measure of the indicated angle.<br><br>Answers:<br>A: 211<br>B: 81<br>C: 119<br>D: 89
    12·2 answers
  • PLS ANSWER)
    15·1 answer
  • Read the question and enter your response in the box prc
    8·1 answer
  • 16. What is the length of the line segment? (1pt)(-12,5)-15-10(-4,-3)A 8B V128C 16D. 260
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!