Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- close all % chiudi eventuali finestre aperte
- clearvars % cancella memoria Workspace
- clc % pulisci Command Window
- %iniziazliz. vettori e matrici
- A1 = [2 0; 4 2];
- b1 = [3; 2];
- A2 = [9 6; 5 2; 1 4];
- b = [6; 1; 9];
- y1 = div_matr(A1, b1);
- disp(y1);
- y2 = div_matr(A2, b);
- disp(y2);
- %Yij =Aij/bj
- function[Y]= div_matr(A, b)
- Y = A./b;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement