how to pass row by row elements of a multidimensional array to a function

1 visualización (últimos 30 días)
ABDUL
ABDUL el 22 de Mzo. de 2018
Comentada: ABDUL el 17 de Abr. de 2018
how to pass row by row elements of a multidimensional array to a function

Respuestas (1)

Ngoc Thanh Hung Bui
Ngoc Thanh Hung Bui el 15 de Abr. de 2018
Editada: Ngoc Thanh Hung Bui el 15 de Abr. de 2018
for i = 1:length(A) % A is your matrix
function(A(i,:));
end

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by