Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

Topic: MATLAB 101 Can someone help me with MATLAB ? I have 0.05% idea how this thing works. I'm just following instructions from the internet, but I'm still stuck with the problem below. Please anyone, teach me.

OpenStudy (anonymous):

I already done with letter a. I used inline function on this question. I have no idea how to do letter b. Can anyone help me out?

OpenStudy (mathmate):

What have you learned so far? Quadratic formula, Newton's method, fixed point iteration, Newton's for systems, or all of the above?

OpenStudy (anonymous):

only quadratic formula i think :/ never heard of the other ones..

OpenStudy (mathmate):

Is this a course on Matlab only, or it's a course on numerical methods/analysis using Matlab as a tool?

OpenStudy (anonymous):

only matlab only

OpenStudy (anonymous):

we are only focusing on the commands and stuff

OpenStudy (mathmate):

Ok, then there's no expected method to solve the second. For starters, here's an implicit plot of the system (second problem). http://prntscr.com/8o3mfh

OpenStudy (mathmate):

See if you can reproduce the same plot in Matlab (if you have covered graphics).

OpenStudy (mathmate):

The solution near (2,3) is the top right intersection.

OpenStudy (anonymous):

we are on the equations right now.. and i got 2.4072 and 1.1106

OpenStudy (anonymous):

if i'll use [2,3]

OpenStudy (mathmate):

So you're in a class? I think you should pay attention to what the instructor is showing you instead!

OpenStudy (anonymous):

no i have a vacant right now. This assignment is due on wednesday

OpenStudy (mathmate):

(2.4,1.1) is definitely not the solution!

OpenStudy (anonymous):

so my code is wrong >.<

OpenStudy (mathmate):

Have you examined the graph and be convinced that (2.4, 1.1) is not the answer?

OpenStudy (mathmate):

You can find out if you put your solution into the equations and see if f(x,y)=0, and g(x,y)=0.

OpenStudy (mathmate):

Your solution works for g(x,y)=0 only. f(x,y) gives -36.0

OpenStudy (mathmate):

So what method of solution of polynomial equations have you learned so far?

OpenStudy (mathmate):

Not sure if you have included both equations into the 'eqns' parameter of fsolve. That may be your only problem.

OpenStudy (anonymous):

oh yeah i made x= x(1) and y=x(2)

OpenStudy (mathmate):

You have missed out the 0 at the end of definition of F(1), which makes the constant 4 instead of 40. That's why when substituted you will get -36! I think that's all you have to correct!

OpenStudy (anonymous):

oh so now i get 2.696 and 3.3655 ?

OpenStudy (mathmate):

I get 2.6963 and 3.3655 using just display(x).

OpenStudy (anonymous):

yes! so those are right?

OpenStudy (mathmate):

Absolutely. If you need more digits, use a more elaborate version of print.

OpenStudy (anonymous):

ahh okay. thank you so much! finally, i can move on with the other exercise xD

OpenStudy (mathmate):

Good! You're welcome! :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!