Resolving the "Homeworks"... is it correct?
1 view (last 30 days)
Answer a) Write a Function in Matlab which receives a Matrix and a Int for input argument and returns the transformed Matrix, and in this transformed Matrix all of the Int divisible elements were devised by the Int.
b) Also write a Matlab script that allows and ask the user about the elements and dimensions of a Matrix, invoke the Function (a)) and the transformed Matrix is showned in the screen.
function N = divide(A,b)
d=input('dimension of the matrix')
q=input('value to use for split)