blob: 04545d34846bb99b6c0e2264c5d805c0d0809067 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//finds the number of z's in the matrix A
function res=number_of(a,z)
res=0;
for i=1:max(size(a(:,1)))
for j=1:max(size(a(1,:)))
if(a(i,j)==z)
res=res+1;
end
end
end
endfunction
|