>> whos Name Size Elements Bytes Density Complex A 3 by 3 9 72 Full No B 3 by 3 9 72 Full No C 3 by 2 6 48 Full No D 3 by 3 9 72 Full No P 3 by 3 9 72 Full No Q 3 by 3 9 72 Full No ans 1 by 1 1 8 Full No r 1 by 3 3 24 Full No total is 55 elements using 440 bytesKada nam je potrebna dimenzija određene matrice u nekim algoritmima možemo koristiti sljedeće funkcije
>> R=[1 2 3 4;5 6 7 8] R = 1 2 3 4 5 6 7 8 >> [red,stup]=size(R) red = 2 stup = 4 >> length(R) ans = 4