Wednesday, October 20, 2010

solve linear equation system

To solve a linear equations system:

x+y+z=3
2x+2y+z=5
4x+8y-3z=9

linsolve is the function to use.

a=[1 1 1; 2 2 1; 4 8 -3];
b=[3;5;9];
linsolve(a,b)

Done!

No comments:

Post a Comment

Any comments?

my-alpine and docker-compose.yml

 ``` version: '1' services:     man:       build: .       image: my-alpine:latest   ```  Dockerfile: ``` FROM alpine:latest ENV PYTH...