Using Matlab; Please show written program to execute and instructions to create plot:
1. Create a vector of x values from 0 to 20 pi, with an increment of pi/100.
y=x sin (x) and z= x cos (x)
a) create a figure window with two subplots. In first subplot create an x versus y plot and in the second subplot create an y versus z plot.
b) create a polar plot of x and y. Add title and labels to every graph.
comment if you have any doubts
output:

%matlab script
%clearing the history
clear;
clc;
%declaring time from 0 to 50 at an interval of 1 sec
x=0:pi/100:20*pi;
%calculating height in terms of time
y=x.*sin(x);
z=x.*cos(x);
%plotting time vs height graph
figure(1);
subplot(2,1,1);
plot(x,y);
title('x vs Sin(x)');
xlabel('x in radians');
ylabel('sine');
%plotting time vs height graph
subplot(2,1,2);
plot(y,z);
title('Sin(x) vs Cos(x)');
xlabel('sine');
ylabel('cosine');
figure(2);
polar(x,y);
title('Sin(x) vs Cos(x) polar plot');
xlabel('sine');
ylabel('cosine');
Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a...
ON MATLAB, CREATE THOSE OUTPUTS WITH DIFFERENT VALUES. BE SURE U HAVE TO CHANGE NUMBERS, COLORS, SHAPES AND LTNE WEIGHTs... AND SHOW YOUR OUTPUT RESULTS AS WELL... the code:: % About Graphs x = 0: pi/40: 4*pi; figure, plot(x, sin(x)) figure, plot([1 1 2 3 3], [0 2 3 2 0]), axis([0 4 0 4]) % for easy plotting: figure, ezplot('tan(x)') % for plotting two graphs on the same axes % it allows to have independent y-axis labels on the...
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...
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...
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...
MATLAB SCRIPT PLEASE
Matlab MATH 210 in 2020 Homework Assignment 8- Due 3/25, 11:59PM Each plot should have its own figure associated with it. In all questions, give the figure a title, and label the acis. Save your matlab script as drill 10.m Do not use the fplot command. 1. Plot the function f(x) = (x + 5)2 for -5 <<<10. Include a plot title, and label both aris. 2. Use the subplot command to make two plots of...
***Use MATLAB only***
Show all inputs and outputs
Create the shape of an “apple” using a surface plot, utilizing the following equations: x = cos u (4 +5.5 cos v) y = sin u (4 +5.5 cos v) z = (cos v + sin v – 1)(1+ sin vlog (1 + 7.5 sin v 10 Where 0 Sus 21 and - SV ST, use Au = Av =1/32. Title: Apple, X-label: x, Y-label y, Z-label: πν.
Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...
These instructions are written with the assumption that code will be done in matlab. You might find the following built in commands useful: length, plot, xlabel, ylabel, title, legend, fzero, plot, disp, axis, axes, min, max. 1. A spring-mass system has the following position y(t) and velocity v(t) functions: y(t) = e −0.5t sin(2t) + √ 3e −0.5t cos(2t) v(t) = e −0.5t (2√ 3 − 0.5) sin(2t) − 0.5(4 + √ 3)e −0.5t cos(2t) where the units are in...
(10 pts) Write a single .py file program to plot the following functions on the same graph for x values from –π to π : y1 = cos(x) y2 = cos(2x) y3 = cos(3x) Plot specifications: Choose an appropriate increment to generate smooth curves and add a comment in the code as to the rationale for that increment to receive full credit y1 is red and dashed y2 is blue and solid y3 is black and dotted Add a legend...
Compute the following problems using Math
Lab.
Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x [2516] a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be...