Answer:
Step-by-step explanation:
function Fn = Fnorm(A)
[r,c] = size(A);
sum = 0;
for i=1:r
for j=1:c
sum = sum + (A(i,j) * A(i,j));
end
end
Fn = sqrt(sum);
end
A = [5 7 9; 1 8 4; 7 6 2]
fprintf("The Frobenius norm of an m × n matrix is\n");
Fn = Fnorm(A)
=========================================================================================\