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
OLEGan [10]
3 years ago
8

Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subp

lots should include a title which is the equation displayed. The independent variable (angle) should vary from 0 to 360 degrees and the plots should use a solid red line.

Engineering
1 answer:
Maksim231197 [3]3 years ago
3 0

The question is incomplete! The complete question along with Matlab code and explanation is provided below.

Question

Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subplots should include a title which is the equation displayed. The independent variable (angle) should vary from 0 to 360 degrees and the plots should use a solid red line.

1. cos(u - 45)

2. 3cos(2u) - 2

3. sin(3u)

4. -2cos(u)

Matlab Code with Explanation:

u=[0:0.01:2*pi] % independent variable represents 0 to 360 degrees in steps of 0.01

y1=cos(2*pi*u-45); % function 1

y2=3*cos(2*pi*2*u)-2;  % function 2

y3=sin(2*pi*3*u);  % function 3

y4=-2*cos(2*pi*u);  % function 4

subplot(4,1,1) % 4 rows, 1 column and at position 1

plot(u,y1,'r');  % this function plots y w.r.t u and 'r' is for red color

grid on   % turns on grids

xlabel('u') % label of x-axis

ylabel('y1')  % label of x-axis

title('y1=cos(2*pi*u-45)') % title of the plot

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

xlim([0 2*pi]) % limits of x-axis

% repeat the same procedure for the remaining 3 functions

subplot(4,1,2)

plot(u,y2,'r');  

grid on  

xlabel('u')  

ylabel('y2')  

title('y2=3*cos(2*pi*2*u)-2')  

ylim([-6 3])

xlim([0 2*pi])

subplot(4,1,3)  

plot(u,y3,'r');

grid on  

xlabel('u')  

ylabel('y3')  

title('y3=sin(2*pi*3*u)')  

ylim([-3 3])  

xlim([0 2*pi])

subplot(4,1,4)  

plot(u,y4,'r');  

grid on  

xlabel('u')

ylabel('y4')  

title('y4=-2*cos(2*pi*u)')  

ylim([-3 3])

xlim([0 2*pi])

Output Results:

The first plot shows a cosine wave with a phase shift of 45°

The second plot shows that the amplitude of the cosine wave is increased and the wave is shifted below zero level into the negative y-axis because of -2 also there is a increase in frequency since it is multiplied by 2.

The third plot shows that the frequency of the sine wave is increased since it is multiplied by 3.

The fourth plot shows a cosine wave which is multiplied by -2 and starts from the negative y-axis.

You might be interested in
A patient has swollen feet, ankles, and legs, and has pain in his lower back. Tests show the level of urea, a waste product, in
myrzilka [38]

Answer: B  Excretory

Explanation: Hope this helps :)

3 0
3 years ago
Ô tô có khối lượng m (kg) đặt tại trung tâm h . Khoảng cách từ h tới 2 bánh xe hai bên của a (m) và b (m) , khoảng cách vết bánh
Nutka1998 [239]

Answer:

wiwhwnwhwwbbwbwiwuwhwhehehewhehehheheheehehehehhehehwh

Explanation:

jwhwhwhwhwhwwhhahwhahahwh

6 0
3 years ago
Can i have answer of this question please?
cestrela7 [59]

uh its a tough one mate

3 0
3 years ago
Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default
Sunny_sXe [5.5K]

Answer:

Explanation:

As a result of the codes used to making this solved, i was unable to upload my answer, therefore i'm sending a screenshot of the codes.

thank you for your understanding,

cheers i hope this helps

5 0
3 years ago
A crate with dimension 12 x 10 x 4in and a mass of 120 lbs slides on an inclined plane of dimension 80 x 10 x 3in. Answer the fo
crimeas [40]

Answer:

See attachments for answers.

5 0
3 years ago
Other questions:
  • What is torque and how does it work?
    14·2 answers
  • An R-134a refrigeration system is operating with an evaporator pressure of 200 kPa. The refrigerant is 10% in vapor phase at the
    15·1 answer
  • The average human heart Beats 1.15 times 10 to the power of 5 per day. There are 3.65 times 10 to the power of 2 days in one yea
    14·1 answer
  • The pressure intensity at a point in a fluid is equal in all directions a.true b.false​
    12·1 answer
  • Why doesn’t the servant kill the child oedipus as he was ordered to do
    11·1 answer
  • Burn rate can be affected by: A. Variations in chamber pressure B. Variations in initial grain temperature C. Gas flow velocity
    15·1 answer
  • Whats is the purpose of the stator winding​
    13·1 answer
  • HELP PLS
    7·1 answer
  • What is the mass of the same dragster body (volume of 150 cm3) if it is made of basswood instead?
    15·1 answer
  • HOW TO CALCULATE MARGINAL RATE
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!