MATLAB Write a function called Matrixproblem that takes an a
MATLAB:
Write a function called Matrix_problem that takes an at most two-dimensional matrix A as its sole input. The function returns a row vector v containing all elements of A that are prime numbers. The elements of v are stored according to row-major ordering of A. You are allowed to use the isprime built-in function.
Solution
A=[5 7 1 9]
B=[1 0 4 5]
B= cat(3,[2 8 :0 5],[1 3: 79]
A=cat(3,[9 2:4 6],[7 1]
Sza=size(a)
Sza=2222
Dimsa=ndims(a)
Dimsa=ndims(a)
Dimsa=3
SSC=size(c)
Dimsc=ndimsc(c)
Sincerely=4

