Write as a MatLab function
P5: For X=0 ~ 2π with intervals of π/100 use the following
equations
Y4=sin(X), Y5=sin(X-0.25), Y6=sin (X-1.5), Y7=sin(X-0.85),
Y8=sin(X)sin(X+0.75)
a. Plot Y4, Y5 and Y6 in the same plot. Add title, labels, legend.
Plot them with different colors and line styles b. Plot Y4, Y5, Y6
and Y7 as subplots. Add title, labels. Plot them with different
colors and line styles c. Plot Y4 and Y8 in the same plot using the
hold on/off. Add title, labels. Plot them with different colors and
line styles d. Plot Y5 × Y6 and Y8 in the same plot without using
the hold on/off. Add title, labels. Plot them with different colors
and line styles e. Plot one of the Y equations as a 3D graph.
Please add title and labels
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
a)
clc
clear all
close all
x=0:pi/100:2*pi;
y4=sin(x);
y5=sin(x-0.25);
y6=sin(x-1.5);
y7=sin(x-0.85);
y8=sin(x).*sin(x+0.75);
plot(x,y4,x,y5,x,y6);
xlabel('X-values');
ylabel('Y-values');
title('Plot of y4,y5,y6');
legend('y4','y5','y6');

b)
clc
clear all
close all
x=0:pi/100:2*pi;
y4=sin(x);
y5=sin(x-0.25);
y6=sin(x-1.5);
y7=sin(x-0.85);
y8=sin(x).*sin(x+0.75);
subplot(2,2,1)
plot(x,y4);
xlabel('X-values');
ylabel('Y-values');
title('Plot of y4');
subplot(2,2,2)
plot(x,y5);
xlabel('X-values');
ylabel('Y-values');
title('Plot of y5');
subplot(2,2,3)
plot(x,y6);
xlabel('X-values');
ylabel('Y-values');
title('Plot of y6');
subplot(2,2,4)
plot(x,y7);
xlabel('X-values');
ylabel('Y-values');
title('Plot of y7');

Note: Brother According to HomeworkLib's policy we are only allowed to answer first 2 part if there are many. So, I request you to post other part as separate posts.
Kindly revert for any queries
Thanks.
Write as a MatLab function P5: For X=0 ~ 2π with intervals of π/100 use the...
Please help me with this MATLAB programming problem! Im coding
iin MATLAB2018 if that makes any difference!
The first picture is the question i need to answer.
The picture below is used as reference to answer the
question.
The last picture (below) is the into to the problem, and is
used as reference.
1. Use Matlab to create the following single plot with three subplots. All titles, gridlines, and axis labels should be as shown. Arc System Response 15 E...
MATLAB
2. a. Create the vector G- b. Compute the counter-clockwise rotations of the vector a, at angles 45, 90, 130, and 180 degrees using the 2 x 2 rotation matrices. Store all 4 of these results with variable names a-45, a-90, a-130, and a_180. c. On the same figure, using the function plot, plot all 5 vectors a, a-45, a_90, a 130, and a 180, each vector with a different color. You may choose different line styles, but this...
sin 2x = 2 cos 2x. dt Use x = 0 1 2m for the x values and calculate the y values for both functions. Change the line types (not points) so they are different line types and different colors. Be sure to include an appropriate title, axis labels, and legend. 100 Problem 4 (10 points): MATLAB script-4 The cost per mile for a rented vehicle is $1.00 for the first 100 miles, S0.80 for the next 200 miles, and...
please help me with this MATLAB CODE and
explain to me what each line does and what is used for?
leave your comments as words, not as pictures.
.....................................................................................................................................................................
clear all; close all; % For a script file, you better start with
clear all and close all
% However, for a fucntion, you better NOT to start
% with them
%% End of cell mode example
%% Plot function
t = 0:0.1:5;
x1 = sin(2*5*t); x2 = cos(3*7*t);...
Use
matlab
Answer 12-15
Have code to copy
FUNCTIONAL DATA Create a vector of x values from 0 to 207 with a spacing of 7/100, where y= x' sin (x) z= x'COS(x) 12. Create an x-y plot of x and y. 13. Create a polar plot of x and y. 14. Create a three-dimensional line plot of x, y, and z. Be sure to add a title and labels 15. Figure out how to adjust your input to plot3 in...
solve all questions simply by using matlab.
write all step here please
1Normal 1 No Spac Heading1 Heading 2 DISCUSSION Solve all tasks given below: 1. Consider function f(x) 3.5-0.5x cos(6x) for the value of x between -2.0 until 4.0. Draw the plot in dash line and in red colour, Label the title and all axes. 2. Consider the following functions for 0sxS pi: x() 10e0.St sin(3t +2) y(t) 7e-04t cos(5t - 3) (a) Draw both graphs on the same...
Problem 1 MATLAB
A Taylor series is a series expansion of a function f()about a given point a. For one-dimensional real-valued functions, the general formula for a Taylor series is given as ia) (a) (z- a) (z- a)2 + £(a (r- a) + + -a + f(x)(a) (1) A special case of the Taylor series (known as the Maclaurin series) exists when a- 0. The Maclaurin series expansions for four commonly used functions in science and engineering are: sin(x) (-1)"...
please use matlab
Goal: Solve for the loads of the chain saw under different loading conditions. The loads on a chain saw as it cuts a log can be represented with the following equations: Ar +B -R cos(60) 0 My-W +By - R sin(60)0 Ar is the reaction load in the x-direction at point A (lb) Ay is the reaction load in the y-direction at point A (Ib) W is the weight of the chain saw (lb) R is the...
Write a MATLAB Graphical User Interface (GUI) to simulate and plot the projectile motion – the motion of an object projected into the air at an angle. The object flies in the air until the projectile returns to the horizontal axis (x-axis), where y=0. This MATLAB program should allow the user to try to hit a 2-m diameter target on the x-axis (y=0) by varying conditions, including the lunch direction, the speed of the lunch, the projectile’s size, and the...
1)
a) Write MATLAB function that accepts a positive integer
parameter n and returns a vector containing the values of the
integral (A) for n= 1,2,3,..., n. The function must use the
relation (B) and the value of y(1). Your function must preallocate
the array that it returns. Use for loop when writing your code.
b) Write MATLAB script that uses your function to calculate the
values of the integral (A) using the recurrence relation (B), y(n)
for n=1,2,... 19...