Question

Solve these nonlinear equations with fsolve function in Matlab. Verify your result with ezplot function. f(x7,x)= x; - 4x} -

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

Save the file as .m extension.

Code:

function F = func(x)

F = [x(1) - 4*x(1)^2 - x(1)*x(2);

2*x(2) - x(2)^2 - 3*x(1)*x(2)];
end

And than open command line and type the following:

x0 = [-5 -5];

x = fsolve(@func,x0);

ezplot('x(1) - 4*x(1)^2 - x(1)*x(2)');

ezplot('2*x(2) - x(2)^2 - 3*x(1)*x(2)');

Results:

x(1)- 4 x(1)2 - x(1) X(2) -203 -203.5 -2042 x(2) - x2 - 3 x(1) x2) -168.5 | -169.5 -17 -170.51 171 마 NE

Add a comment
Know the answer?
Add Answer to:
Solve these nonlinear equations with fsolve function in Matlab. Verify your result with ezplot function. f(x7,x)=...
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
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