PDA

View Full Version : Matlab = domanda banale


lore_83
08-03-2007, 11:41
Come si risolve questo sistema?
A=[0 1 0 1; 1 0 1 0; -sin(r) -cos(r) sinh(r) cosh(r); -cos(r) sin(r) cosh(r) sinh(r)]
B=[0 0 0 0]

A č la matrice dei coefficienti e B la matrice dei termini noti.
Perņ se faccio:

C=inv(A);
x=B*C

essendo B nullo non riporta...

Come fare?

Grazie a tutti.
Ciao.

lore_83
09-03-2007, 11:14
Nessun aiuto?

lovaz
09-03-2007, 11:26
Prova cosi':

x=A\b

lovaz
09-03-2007, 15:28
Dall'help di octave - in matlab dovrebbe essere lo stesso:

`X \ Y'
Left division. This is conceptually equivalent to the expression

inverse (x) * y

but it is computed without forming the inverse of X.

If the system is not square, or if the coefficient matrix is
singular, a minimum norm solution is computed.