Construction d'une matrice
Méthode :
Pour construire la matrice suivante :
\( A=\begin{pmatrix} 1&0&3&5 \\4&8&6&0\\7&8&9&10\\2&3&1&3 \end{pmatrix}=(a_{ij})\)
\(B=\begin{pmatrix}5&6&7\end{pmatrix}\)
Sous Scilab il faut taper
A=[1 0 3 5; 4 8 6 0; 7 8 9 10;2 3 1 3]
B=[5 6 7];
La fonction size permet d'obtenir la taille d'une matrice:
size(A)
size(B)