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
Why do I eat Takis please
sammy [17]

Answer:

because they taste good :)

7 0
1 year ago
Read 2 more answers
When was the first black or white hole discovered?
ivolga24 [154]

Answer:

1964

Explanation:

It was discovered in 1964 when a pair of Geiger counters were carried on board a sub-orbital rocket launched from New Mexico.

3 0
3 years ago
a) find the state-space representation of the system. b) is the system controllable? why? c) is the system observable? why
mart [117]

If a controlled input can transfer (alter) the control system's initial states to some other desired states in a finite amount of time, the control system is said to be controllable.

Using Kalman's test, we can determine whether a control system is controllable. The evolution model for the state variables (time-varying unknowns) and the observation model, which connects the observations to the state variables, make up the state space representation of a dynamical system. The capacity to move a system about in its full configuration space using just specific permitted actions is generally referred to as controllability. The precise definition changes slightly depending on the model type or framework used.

Learn more about control here-

brainly.com/question/28540307

#SPJ4

5 0
1 year ago
4. Which type of duct undergoes more rigorous testing before it's labeled?
Alenkasestr [34]

Answer:

Flexible duct

Explanation:

it is flexible duct due to current flow

7 0
3 years ago
From the article "Time Travel Is A Fun Science Fiction Story But Could It Be Real?", Albert Einstein's Theory of Relativity is d
zhannawk [14.2K]

Answer:

Option A

Explanation:

As per the article "Time Travel Is A Fun Science Fiction Story But Could It Be Real?" the gravitational field is a representation of curving space and time. As the gravity becomes strong, the space-time get more curved and hence the time gets slower.

Hence, option A is correct

8 0
3 years ago
Other questions:
  • 5) Two concentric spheres of diameter D1= 70 cm and D2= 120 cm are separated by an air space and have surface temperatures of T1
    13·1 answer
  • Energy that causes a transfer of heat between marterials
    13·1 answer
  • One kg of an idea gas is contained in one side of a well-insulated vessel at 800 kPa. The other side of the vessel is under vacu
    11·1 answer
  • You are an engineer at company XYZ, and you are dealing with the need to determine the maximum load you can apply to a set of bo
    13·1 answer
  • The dam cross section is an equilateral triangle, with a side length, L, of 50 m. Its width into the paper, b, is 100 m. The dam
    9·1 answer
  • 10–25. The 45° strain rosette is mounted on the surface of a shell. The following readings are obtained for each gage: ε a = −20
    9·1 answer
  • Which definition best fits the idea of electrical resistance in a wire? A. the decrease in current flow due to electrons collidi
    12·1 answer
  • A rich industrialist was found murdered in his house. The police arrived at the scene at 11:00 PM. The temperature of the corpse
    5·1 answer
  • What is name for grandmother in German?
    14·1 answer
  • Your friend has two substances A and B which are compressed liquid and superheated vapor respectively. Both are in rigid vessels
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!