Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Could anyone please help with solving this problem in MATLAB? Homework #3: problem 1 .Write a MATLAB script which plots and displays in a table
Could anyone please help with solving this problem in MATLAB?
Homework #3: problem 1 .Write a MATLAB script which plots and displays in a table individual points entered by a user for a general quintic polynomial: y(x)- axxcx3 + dx2 + ex +f Your program should do the following Read-in the coefficients of the quintic polynomial Read-in 5 individual x values from the user, calculate the corresponding y values, and save all the values in appropriate arrays using a while loop Display the entered values in a table and on a plot. On the same plot, display the actual smooth quintic function from the minimum value to the maximum value entered. Test your program for a-0.125, b 0, c 15.25, d 13.1, e = 2.6,--1.5 with various x values ranging from a minimum of -3 to a maximum of 3. 15 Homework #3: problem 1 Enter coefficients for a quintic polynonial of the Eorm: y=ax^5 + bx"4 + cx^3 + dx"2 + ex + f Enter a value for a: -0.125 Enter a value for b: 0 Enter a value for e: 15.25 Enter a value for d: 13.1 Enter a value for e: 2.6 Enter a value for f: 1.5 The quintic polynomial you have entered is: (-0.125)%"5 + (0)%"4 + (15.25 3 +113.1)%"2 + (2.6)% + (-1.5) Enter a value for x:-3 Enter a value for x:3 Enter a value for x:1.2 Enter a value for x:-1.8 Enter a value for x: 0.36 1 of 4 y(x) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started