Question

Plot the following: For x between -4pi to +4pi f(x)-xsin(x-1) Use a blue dotted line type with asterisk markers. Add a title
0 0
Add a comment Improve this question Transcribed image text
Answer #1

x=-4*pi:4*pi;
y=(x.^2).*sin(x.^(-1));
plot(x,y,':*');
xlabel('x');
ylabel('x squared of sine of 1 over x');x squared of sine of 1 over x

Add a comment
Know the answer?
Add Answer to:
Plot the following: For x between -4pi to +4pi f(x)-x"sin(x-1) Use a blue dotted line type...
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
  • matlab only! Question 1 Plot the following: 0SXS10T, with increments of 0.1 T fx) x2sin(x) Use a green dashed line t...

    matlab only! Question 1 Plot the following: 0SXS10T, with increments of 0.1 T fx) x2sin(x) Use a green dashed line type with square markers. Add x and y axis titles of 'x axis' and 'x2sin(x) Do not add a title to the plot. Question 1 Plot the following: 0SXS10T, with increments of 0.1 T fx) x2sin(x) Use a green dashed line type with square markers. Add x and y axis titles of 'x axis' and 'x2sin(x) Do not add a...

  • Practice: Plot x vs y when y sin(x), y cosx), y sin (2"x), and y-2 sin(x)...

    Practice: Plot x vs y when y sin(x), y cosx), y sin (2"x), and y-2 sin(x) when x-1:0.1:10. Use 2 by 2 subplot, sin(x) is in location 1, cos(x) is in location 2, sin(2x) is in location 3 and 2 sin(x) is in location 4 The plot should have: (1) x labe|-"х value", y label = 'y value', legend 'y=sin(x)',' y-cos(x)',' y-sin (2*x)', "y-y-2*sin(x), and title = "X Vs. y, under Font Name of Times New Roman, and Font Size...

  • Given y1, y2, and y3 as a function of x. In the same graph plot the...

    Given y1, y2, and y3 as a function of x. In the same graph plot the three functions for x ?[-3,3] . Follow the form given below. function y1 Line style: solid, color: blue function y2 Line style: dashed, color: black function y3 Line style: dotted, color: red Label the x and y axis; x axis as (x), and the y axis as (y1,y2,y3), title the graph as (problem5), add a legend on the plot. y1=x^4-e^(-x) y2=x^2-x^3+25 y3=30-12x,

  • two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the...

    two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the second plot on the right is y = e(−0.5sqrt(x) . Let x be from 0 to 10 with increment 0.1. The first plot is in blue color, solid line and the second is in red color, dotted line. Turn both grids on. Both figures should have own title and x-axis and “y-axis” labels. Note that you should plot both according to the above instruction....

  • (10 pts) Write a single .py file program to plot the following functions on the same...

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

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

  • 1. Dressing up the graph with text, gtext, xlabel, ylabel, and tit le: Plot y =...

    1. Dressing up the graph with text, gtext, xlabel, ylabel, and tit le: Plot y = exp(r) in the interval [-3, 3] using a solid line. Now plot a linear approximation of e (i.e., y = x) using a dashed line and a 1 + r + using a dotted line. Title the plot "Gross Approximations of exp(x)." Label the y-axis as text to label the exp(a) quadratic approximations of exp(r) appropriately. Set axes limits to [-3, 3, -5, 15)....

  • Problem 2: Create a surface plot and a contour plot of the function f(x, y) =...

    Problem 2: Create a surface plot and a contour plot of the function f(x, y) = xe-I(x-y2)*+y?] Where -2 x 2 and -2 < y s 2. Use a step size of 0.1. Add labels to the axis Problem 2: Create a surface plot and a contour plot of the function f(x, y) = xe-I(x-y2)*+y?] Where -2 x 2 and -2

  • 1) Write a script that plots sin(x), cos(x), tan(x) for x between 0 and 360◦ (or...

    1) Write a script that plots sin(x), cos(x), tan(x) for x between 0 and 360◦ (or 2π radians) on one graph, adjusts the y axis to range between −10 and +10, and includes a legend identifying each line. 2)Write a Matlab function that sums up a specified number of odd-power terms from the Maclaurin series of sin(x) For example, if you use the function you wrote to sum the first 10 terms for x = 1, you should get 1...

  • The Taylor polynomial approximation pn (r) for f(x) = sin(x) around x,-0 is given as follows: TL ...

    The Taylor polynomial approximation pn (r) for f(x) = sin(x) around x,-0 is given as follows: TL 2k 1)! Write a MATLAB function taylor sin.m to approximate the sine function. The function should have the following header: function [p] = taylor-sin(x, n) where x is the input vector, scalar n indicates the order of the Taylor polynomials, and output vector p has the values of the polynomial. Remember to give the function a description and call format. in your script,...

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