Re: solving n unknowns n equations
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Sat, 24 May 2008 20:10:43 +0000 (UTC)
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
.
- Follow-Ups:
- Re: solving n unknowns n equations
- From: talhaaydin
- Re: solving n unknowns n equations
- References:
- solving n unknowns n equations
- From: talhaaydin
- solving n unknowns n equations
- Prev by Date: Re: Annotating points on a graph
- Next by Date: Re: Memory measurment
- Previous by thread: solving n unknowns n equations
- Next by thread: Re: solving n unknowns n equations
- Index(es):
Relevant Pages
|
Loading