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
python Write a program that asks a user to type in two strings and that prints •the characters that occur in both strings. •the
Yuliya22 [10]

Answer:

see explanation

Explanation:

#we first get the elements as inputs

x = input("enter string A :")

y = input("enter string B :")

#then we make independent sets with each

x = set(x)

y = set(y)

#then the intersection of the two sets

intersection = set.intersection(x,y)

#another set for the alphabet

#we use set.difference to get the elements present in x and not in y, and

#viceversa, finally we get the difference between the alphabet and the #intersection of the elements in our strings

z = set('abcdefghijklmnopqrstuvwxyz')

print('\nrepeated :\n',intersection)

print('differences :\n',' Items in A and not B\n',

set.difference(x,y),'\nItems in B and not A\n',

set.difference(y,x))

print('\nItems in neither :\n',set.difference(z,intersection))

8 0
3 years ago
The _______ is a function that describes how the pinna, ear canal, head, and torso change the intensity of sounds with different
scoundrel [369]

Answer:

B: Directional Transfer Function

Explanation:

The function that describes how the pinna, ear canal, head, and torso change the intensity of sounds with different frequencies that arrive at each ear from different locations in space is called Directional Transfer Function.

8 0
2 years ago
In Process Costing, the journal entry to record the cost of goods transferred out from the WIP shaping department to the WIP pac
ddd [48]

Answer:

Journal entry :

Date Account and explanation Debit credit

                WIP-Packing department XXX  

                WIP-Shaping department            XXX

(To record cost of goods transferred out from the WIP shaping department to the WIP packaging department )  

So above statement is False

Explanation:

4 0
3 years ago
In an ideal gas, specific enthalpy is a function of i. Entropy ii. Temperature iii, Pressure iv. Mass
Mice21 [21]

Answer:

Temperature

Explanation:

In an ideal gas the specific enthalpy  is exclusively a function of Temperature only this can be also written as h = h(T)  

A gas is said be ideal gas if obeys PV= nRT law

And in a ideal gas both internal energy and specific enthalpy are a function of Temperature only. Therefore the constant volume and constant pressure specific heats Cv and Cp are also function of temperature only.

5 0
3 years ago
Befor operating any plant,machinery or equipment,you should​
SIZIF [17.4K]

Answer:

Always make sure that you are properly protected and that it is all clear to be operated on.

3 0
4 years ago
Read 2 more answers
Other questions:
  • The bulk modulus of a material is 3.5 ✕ 1011 N/m2. What percent fractional change in volume does a piece of this material underg
    13·1 answer
  • Which of these is least likely a step in replacing a failed compressor?
    12·2 answers
  • Burn rate can be affected by: A. Variations in chamber pressure B. Variations in initial grain temperature C. Gas flow velocity
    15·1 answer
  • Which of the following statements is not true about underage drinking?
    10·1 answer
  • Which of the following units of measurement is denoted by a single apostrophe mark (')?
    6·1 answer
  • Calculate the number of vacancies per cubic meter at 1000∘C for a metal that has an energy for vacancy formation of 1.22 eV/atom
    14·1 answer
  • Ohm's law states that the current (I) in amps equals the voltage (E) in volts decided by the resistance (R) in ohm's. If you con
    15·1 answer
  • Design for human-fit strategies include:
    12·1 answer
  • What is the moment that the wrench puts on the bolt?
    13·1 answer
  • Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!