Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLAB for 𝑥 = 2.

Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLABfor 𝑥 = 2.

 Accepted Answer

Code:
x = 2;
y = 4*x^3 + 6*x^2 + x + 1;
Output:
x = 2
y = 59

More Answers (1)

This is very strictly based how you displayed the equation.
x = 2;
y = 4*x*3 + 6*x*2 + x + 1
Mostly likely you just simply copied/pasted without formatting it. Anyhow, please check and come back

Categories

Find more on Strategy & Logic in Help Center and File Exchange

Products

Release

R2007b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!