Re: solving n unknowns n equations



In article <ca3a1623-2a7d-416f-89ee-93919fac0040@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<talhaaydin@xxxxxxxxxxx> wrote:
Hi, As you might guess I am beginner on matlab. please help me to
solve a part of my project. I have 5 eqns 5 unknowns. How can I solve
that?

There is no general method of solving that.

There -are- ways of solving systems of N equations in N unknowns
when the equations are in certain restricted domains, such as
being linear systems.


Besides can I convert a number say x=100/20 to x=5

That always happens and you cannot avoid having it happen
(except by using some fairly convoluted formulations with the symbolic
toolbox.)

I am going to make a wild speculation and guess that you might
perhaps have "format fraction" in effect. Try giving the command
format g

and lastly
how can I fix the digit number after decimal point for example to 3 or
4.

You cannot except for a relatively small number of cases. For example,
87 + 1/8 can be exactly represented in 3 decimal places, but
87.126 (that is, 87 + 1/8 + 1/1000) cannot be exactly represented
(except in the symbolic toolbox, using variable precision arithmetic.)

You -can- convert floating point numbers into character strings
that have any specific number of decimal places in the textual
representation. For example,

numberastext = num2str(87.126,'%0.3f')
--
"The study of error is not only in the highest degree
prophylatic, but it serves as a stimulating introduction to the
study of truth." -- Walter Lipmann
.



Relevant Pages

  • Re: solving n unknowns n equations
    ... You said many of ways for solving equations. ... the two linear equation using "syms" etc(in that way the remaining 3 ... perhaps have "format fraction" in effect. ... (except in the symbolic toolbox, ...
    (comp.soft-sys.matlab)
  • Re: Finding foot of the perpendicular
    ... Now use the fact that the slope of the line through the points, ... Regarding x0,y0 as the unknowns, and a,b as constants, you now have 2 ... I'm now lost on what to do and whether I'm going down the right ... If you can't follow my suggested  method for solving (but try before ...
    (sci.math)
  • Algorithm for solving system of equations?
    ... I know that solving a system of equation is "difficult". ... I have a dynamic system consisting of 56 equations with 56 ... unknowns, and am trying to come up with a good algorithm for solving ...
    (sci.math)
  • Re: Finding foot of the perpendicular
    ... relating the unknowns x0,y0. ... equation relating the unknowns x0,y0." ... If you can't follow my suggested  method for solving (but try before ... plugging x0 into, expanding and simplifying: ...
    (sci.math)
  • Re: Finding foot of the perpendicular
    ... Regarding x0,y0 as the unknowns, and a,b as constants, you now have 2 ... equation relating the unknowns x0,y0." ... I'm now lost on what to do and whether I'm going down the right ... If you can't follow my suggested method for solving (but try before ...
    (sci.math)

Loading