Question

MATLAB please make it simple as possible P4.1.9 Write a script that displays in a single...

MATLAB please make it simple as possible

P4.1.9 Write a script that displays in a single figure window a plot of the functions x, x2, x3, x4,

and x5 across the interval [0, 1].

0 0
Add a comment Improve this question Transcribed image text
Answer #1
x = 0:0.01:1;
plot(x, x, 'r', x, x.^2, 'g', x, x.^3, 'b', x, x.^4, 'c', x, x.^5, 'm')
xlabel('x')
legend('x', 'x^2', 'x^3', 'x^4', 'x^5')
Add a comment
Know the answer?
Add Answer to:
MATLAB please make it simple as possible P4.1.9 Write a script that displays in a single...
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
  • Write a MATLAB script that loads and displays each of the captured images. Publish the MATLAB...

    Write a MATLAB script that loads and displays each of the captured images. Publish the MATLAB script output as a .docx file. For compactness purposes, show all five waveforms for each case on the same figure using MATLAB subplots. Use the legend function in MATLAB to add appropriate labeling to the subplots to ensure that the Figure legend can be written succinctly.

  • photo of the code please and an explnation if possible, Construct a simple MATLAB function program...

    photo of the code please and an explnation if possible, Construct a simple MATLAB function program my_factorial which calculates product of first n positive integer numbers (i.e. find factorial n!). For full points: - Make sure you protect the code from illogical use (n must be positive integer) - Test the function by comparing with built in MATLAB function factorial(n) - Make sure you test your function for any limitations. O marks) -3. Using my factorial function from the previous...

  • Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to...

    Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...

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

  • MATLAB Question: Write a script for the problem pictured. Please send the script, not just the...

    MATLAB Question: Write a script for the problem pictured. Please send the script, not just the printout. Make sure your script allows you to input a value for n so when prompted, in the command window, user types n value. The n value should be the f_k if k ==1 .... Please also send print outs if you can. BELOW IS A SAMPLE ANSWER THAT DID NOT PUT THE INPUT SCRIPT NEEDED FOR THIS QUESTION TO BE CORRECT. YOU CAN...

  • Write a matlab code to solve this problem using Matlab below Please make sure it works Thank You ...

    write a matlab code to solve this problem using Matlab below Please make sure it works Thank You please use matrices The following diagram shows part of the central section of UC Davis campus. Assume that the streets are one way, and that the average number of bikes entering and leaving this section during the 10 miutes breakes btween classes is given in the chart. Find the amount of the trafic between each of four intersection 250 120 120 70...

  • To Be Done Only in MatLab Please use the format provided: Symbolic integration in Matlab can be done Syms x int(f) For...

    To Be Done Only in MatLab Please use the format provided: Symbolic integration in Matlab can be done Syms x int(f) For the definite integral, for example from 0 to 1 is den by intlf,0,1) Use this toolbox to find the integrals of g(x)=(x2+ 1)sin (x), G(x)=Js(x)dr Plot the function Glx) andgx) Your Script ¥ MATLAB Documentation Reset 1 syms X plot ) 7 figure fplot() Run Script Symbolic integration in Matlab can be done Syms x int(f) For the...

  • 4. Given (x)=x-5x + 5x5x2 - 6x , write a symbolic MATLAB script that: (a) plots...

    4. Given (x)=x-5x + 5x5x2 - 6x , write a symbolic MATLAB script that: (a) plots g(x) in the interval -2 <x< 4, (b) finds and display all of its maxima and minima, (c) evaluates g(x) at the following values of x: -21, 21, 0, 1, 2st and displays the five results. tidad

  • Write a Matlab script that 1. Uses your computer’s audio device to record a single DTMF...

    Write a Matlab script that 1. Uses your computer’s audio device to record a single DTMF tone as generated by a cell phone (or an app). 2. Decodes and displays the number associated with the recorded tone.

  • 1. Write a short MATLAB script or function (m-file) that generates the functions (t)eu(t) for a =...

    Only calculate manually 1. Write a short MATLAB script or function (m-file) that generates the functions (t)eu(t) for a = 0.1. Plot the value of x(t). Since the e-af almost attenuates to 0 after 5T, where T1. So make your time vector from 0 to 5T would be enough to capture the signal.) 2. Using the definition of the FT (1), manually calculate the FT of the given functions in previous exercise 0O x(t)e 3. Plot the absolute values and...

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