Answer to Question #186816 in MatLAB for sumu

Question #186816

Generate data with the function y = ax3 + bx2 + cx + d in the range of x as it

varies from 0 to 2 with step increase of h . Assign suitable values of constants a, b, c and d.

Also assume the increment h to any value in between 0.1 to 0.25.


1
Expert's answer
2021-04-28T16:46:15-0400
a = 1;
b = 2;
c = 3;
d = 4;
h = 0.1;

x = 0:h:2;
y = a*x.^3 + b*x.^2 + c*x +d

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS