Question
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= xCOS(x) 12. Create
0 0
Add a comment Improve this question Transcribed image text
Answer #1

x = 0:pi/100:20*pi;
y = x .* sin(x);
z = x .*cos(x);

%answer 12
figure
plot(x, y)
title('x-y plot')
xlabel('x')
ylabel('y')

%answer 13
figure
polarplot(x, y)
title('polar plot of x and y')


%answer 14
figure
plot3(x, y, z)
title('3D plot of x, y and z')
xlabel('x')
ylabel('y')
zlabel('z')

%answer 15
figure
plot3(y, z, x)
xlabel('y')
ylabel('z')
zlabel('x')

X-y plot 0 10 20 30 40 50 60 70

polar plot of x and y 90 120 60 150 180 210 330 240 300 270

3D plot of x, y and z N 20 V -500 x

, -50 50

Add a comment
Know the answer?
Add Answer to:
Use matlab Answer 12-15 Have code to copy FUNCTIONAL DATA Create a vector of x values...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a...

    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...

  • ON MATLAB, CREATE THOSE OUTPUTS WITH DIFFERENT VALUES. BE SURE U HAVE TO CHANGE NUMBERS, COLORS,...

    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...

  • Assume that y is a column vector with ten elements, write matlab code that will create...

    Assume that y is a column vector with ten elements, write matlab code that will create a stem plot of the vector starting at a horizontal axis value of 1. Add code that will create the stem plot of the vector starting at a horizontal axis value of 0. Create additional code that creates a stem plot but plots y at every other horizontal value (i.e., 0, 2, 4, etc)

  • In MATLAB create a code for An ellipsoid of revolution is the solid analog of a...

    In MATLAB create a code for An ellipsoid of revolution is the solid analog of a two-dimensional ellipse. The equations for an ellipsoid of revolution rotated around the x axis are * = a cos o cos y = b cos sin e (8.22) 2 = b sin where a is radius along the x-axis and b is the radius along the y- and z-axes. Plot an ellipsoid of revolution for a = 2 and b = 1.

  • Write as a MatLab function P5: For X=0 ~ 2π with intervals of π/100 use the...

    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...

  • MATLAB 2. a. Create the vector G- b. Compute the counter-clockwise rotations of the vector a,...

    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...

  • MATLAB Any guidance is appreciated! Use meshgrid() function to create 2D grid coordinates with x- and...

    MATLAB Any guidance is appreciated! Use meshgrid() function to create 2D grid coordinates with x- and y- coordinates both from -12 to +12 in the increment 1/32. B) Calculate the function z shown below at every (x, y) point and store the result in a 2D array z Z = sin(squareroot x^2 + y^2)/ squareroot x^2 + y^2 c) Find the maximum value in array z and its corresponding index. The array may have more than one maximum points with...

  • ***Use MATLAB only*** Show all inputs and outputs Create the shape of an “apple” using a...

    ***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: πν.

  • How do I solve using Matlab? Create a matrix X so that the first row has...

    How do I solve using Matlab? Create a matrix X so that the first row has values from 0 to 50 (default intervals), and the second row has values from 50 to 100. Let matrix Y equal to x10 and Z equal to x + y2 Create 4 subplots containing a mesh, surface, 3-Dimensional, and a surface-contour plot. Label with appropriate titles and labels. The plots should have a string look to them.

  • how would i do this code in MATLAB Step 2: Coding You are given a vector...

    how would i do this code in MATLAB Step 2: Coding You are given a vector t. We define x = di cos(it) 16 Yi = 1:1.sin(i-1) for i = 1,2,...,15,16 where multiplication of vectors is assumed to be point-wise. Create a 4x4 subplot. - In the ith location, plot the values of x; versus y; with a solid line (pick a color). - Make the axis tight Run the code a few times before submitting. Note that the size...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT