Question

Required: MATLAB CODE and attached figure window for the this question. 12. Make the plot of the astroid that is shown in the is problem by using the parametric equa- 0.5 tion: 05 0s cos() and y -

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

j = 1;
for i =-pi:0.05:pi
t = i;
X(j,1) = cos(t).^3;
Y(j,1) = sin(t).^3;
j = j+1;
end

plot(X,Y)

0.8 0.6 0.4 0.2 -0.2 0.4 0.6 0.8 -1 1 0.8 0.6 -0.4-0.2 0 0.2 04 0.6 0.8

Add a comment
Know the answer?
Add Answer to:
Required: MATLAB CODE and attached figure window for the this question. 12. Make the plot of the astroid that is shown...
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
  • I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But...

    I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But I wanna get a plot of completely sinusoidal form. If I can magnify the plot and expand x-axis, maybe we can get the sinusoidal form. So help me with this problem by using matlab. Example is attached in below. One is the plot from this code and another is example. function second_order_ode2 t=[0:0.001:1]; initial_x=0; initial_dxdt=0; [t,x]=ode45(@rhs,t,[initial_x initial_dxdt]); plot(t,x(:,1)) xlabel('t') ylabel('x')...

  • I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But...

    I'm trying to solve this differential equations by using matlab and I've got a plot from the code attached. But I wanna get a plot of completely sinusoidal form. If I can magnify the plot and expand x-axis, maybe we can get the sinusoidal form. So help me with this problem by using matlab. Example is attached in below. One is the plot from this code and another is example. function second_order_ode2 t=[0:0.001:1]; initial_x=0; initial_dxdt=0; [t,x]=ode45(@rhs,t,[initial_x initial_dxdt]); plot(t,x(:,1)) xlabel('t') ylabel('x')...

  • MATLAB ICA 1: a) Using plot3, plot x, y and z given by the follow equations,...

    MATLAB ICA 1: a) Using plot3, plot x, y and z given by the follow equations, for the range oft of 0.1, with R-10, r = 1.8, d :0.8, and a = 0.5: 0 to 200 in steps x(t) = (R-r) * cos (t) + d * cos R -r 佇r.r) . y(t) = |(R _ r) * sin(t) + d * sin (__ * t)|*cos (a * t) 2(t) = [A-r) * sin(t) + d * sin (--* t)|...

  • WRITE MATLAB CODE FOR IT. Task 02: For the circuit shown in figure 12.2, the input...

    WRITE MATLAB CODE FOR IT. Task 02: For the circuit shown in figure 12.2, the input voltage is Vi(t)-10 cos(2t) u(t) I. Plot the steady state output voltage voss(t) for t > 0 assuming zero initial conditions. I1. Determine whether the system is stable or mot? 0.5 F 2 Ohm v(t) Vo (t) 1 Ohm Figure 12.2

  • Use the attached Matlab code as a basis to solve the following ordinary differential equation usi...

    Question 1 QUESTION 2 Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is...

  • These instructions are written with the assumption that code will be done in matlab. You might fi...

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

  • Use MatLAB to create a code to make the picture below. Pici. Radially shrink the graph...

    Use MatLAB to create a code to make the picture below. Pici. Radially shrink the graph of x(0) = (ecos(©) – 2 cos(40) + sin(0/12)5) sin(0) y(@) = (ecos(Ⓡ) – 2 cos(48) + sin(0/12)") cos(0) ? for 0 <0 < 27 down to a factor of 0.

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

  • Please show the code necessary, and explanations on MATLAB. Plotting 11) Plot the function y =...

    Please show the code necessary, and explanations on MATLAB. Plotting 11) Plot the function y = sin(x) from x = 0 to 21. 12) Plot the functions y = x2 z = x2 + 2x + 1 from x = 0 to 2 on the same graph. Scripts: Input and Output 13) Write a script (M-file) to read in a message at the command line using the MATLAB input function and then display the message to the Command Window using...

  • Please explain in detail and use MATLAB code. Thank you. Prob. 4-1 FM and PM are,...

    Please explain in detail and use MATLAB code. Thank you. Prob. 4-1 FM and PM are, respectively, defined as FM: A cos ((t) PM: A cos (kpm(t)) The FM and PM coefficients. kf and kp are kf-100 and kp-2, respectively. The carrier frequency is 400 Hz (1) Plot both the time-domain and frequency-domain representation for two independent message signals, m1(t) and m2(t) using MATLAB. Figure 1 is, again, the illustration of the Rectangular pulse (a) Tn1(t) = 11(t _ 0.5)...

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