Question

I need some help with this I know you use the subplot function but I can't get it to work
***MATLAB***

2) Generate the following plot . Use font size 14 » Line width 1.5 . Use limits on the axis when necessary 0.5 2 0.5 0.5 0.5 2 100 -100 2 -15 -10 -5 10 15 0

0 0
Add a comment Improve this question Transcribed image text
Answer #1

>>x-[-1*pi*0.5:0.1:pi*0.5]; >> y-sin(x); >> plot(x,y,--r r, LineWidth 1.5),xlabel (x, fontsize 14),ylabel (sin (x),0.8 0.6 0.4 0.2 0.2 0.4 0.6 0.8 2 1.5 0.5 0.5 1.5 2

7:24 AM Commands >>x [-1*pi*0.5:0.1:pi*0.5); = y-cos(x) >>plot (x,y, -ro, Linewidth, 1.5),xlabel(x, fontsize, 14),yla

0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 2 1.5 0.5 0.5 1.5 2

>y-tan (x); >> plot (x,y, -k, LineWidth, 1.5),xlabel (x , fontsize, 14),ylabel ( tan(x), fontsize,14),grid on, axi100 80 60 40 20 -20 40 -60 -80 -100 2 1.5 0.5 0.5 1.5 2>> y-asin(x); >> plot (x,y, --b, LineWidth 1.5),xlabel (x , fontsize, 14),ylabel ( asin(x), fontsize, 14),grid on,2 1.5 0.5 0 0.5 -1 2 10.8 0.6 0.40.2 0 0.2 0.4 0.6 0.8y-acos (x); >> plot (x,y, -ro, LineWidth, 1.5),xlabel (x, fontsize, 14),ylabel ( acos (x), fontsize, 14),grid on,4 3.5 3 2.5 1.5 0.5 0 10.8 0.6 0.40.2 0 0.2 0.4 0.6 0.8>y-atan(x); >> plot (x,y, -b, LineWidth, 1.5),xlabel (x , fontsize, 14),ylabel (atan(x), fontsize, 14),grid on, ax5 0 5 -5 0 5 2 5 0 0 0

Add a comment
Know the answer?
Add Answer to:
I need some help with this I know you use the subplot function but I can't...
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
  • Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any d...

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

  • I know how to do part a but i really need help with part B. Thanks...

    I know how to do part a but i really need help with part B. Thanks 1. a) Use MATLAB or Excel to create a Bode plot of the transfer function G(S) +0.5 0.5 s 1.0. for 0.0 1 a) 100 b) Discretize the transfer function using a backwards difference (Euler) transformation. Write a routine in MATLAB or Excel to calculate the output of the transfer function given an input signal. Use your routine to calculate the outputs for the...

  • Can you please put this is matlab and show the results. I can't get an answer....

    Can you please put this is matlab and show the results. I can't get an answer. >> f- inline '10+4*sin (t) -2*sqrt(y) ','t','y').; >>plot(t.y)

  • i need help in this assignment by using matlab. codes only or capture the solutionPlot t...

    i need help in this assignment by using matlab. codes only or capture the solutionPlot t versus v with line width 1.5, dotted, red colored line, triangle shaped, marker with size 10, black edge, and green face. A1-2. a. Determine the drae coefficient (cd) using the equation: cd = g*m/upsilon^2from the exploratory data analysis below: g=9.81 b. Find out average, maximum, and minimum of cd by the command meant(cd), max(cd), and min(cd) respectively. c. Determine the predicted terminal velocity by...

  • 1. Plotting a target sign Make a new script called CTask1p1.m to draw a simple target sign, as shown below. You may use sin(), cos() and line() functions, but not viscircles() function. You may use p...

    1. Plotting a target sign Make a new script called CTask1p1.m to draw a simple target sign, as shown below. You may use sin(), cos() and line() functions, but not viscircles() function. You may use plot function's name-value pairs to specify the line width and colour. When specifying colours, you can use the colour names (or colour code), such as 'blue', 'red', instead of providing RGB vector. In addition, you can use axis equa 4 3.5 3 2.5 2 1.5...

  • Can someone help me out with this. I can't get my MATLAB to do these correctly,...

    Can someone help me out with this. I can't get my MATLAB to do these correctly, thanks! Solve the following differential equations using the Matlab function "ode45”, ”ode23” or “ode 15s". For all cases use odeset to set the stats to on, so you can see the process for the solver. Plot your result. Use a legend on your plots. (a) y' =-2y y(0) = 5, tfinal = 2 (b) y" + 3 y' + 25 y = 0 y(0)...

  • please use matlab Goal: Solve for the loads of the chain saw under different loading conditions....

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

  • I'm trying to solve this problem by using matlab. But I don't know reason why I can't get the solutions. I w...

    I'm trying to solve this problem by using matlab. But I don't know reason why I can't get the solutions. I wanna get a plot of this differential equation. Please find a way how to solve this problem. May there're errors in the code. Please check it.    second-oder-ode2.m x 曱function, second-oder-ode2 t=0:0.001 :30; initial-× = 0; in i t i al-dxdt 0; lt,影=ode45( @rhs, t. [initial.x initial-dxdt ] ); plot( (:, 1) ) ; xlabel( 't); ylabel(): function dxdt=rhs( t,...

  • please help me with this MATLAB CODE and explain to me what each line does 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);...

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

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