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

2 visualizzazioni (ultimi 30 giorni)
how to pass row by row elements of a multidimensional array to a function

Risposte (1)

Ngoc Thanh Hung Bui
Ngoc Thanh Hung Bui il 15 Apr 2018
Modificato: Ngoc Thanh Hung Bui il 15 Apr 2018
for i = 1:length(A) % A is your matrix
function(A(i,:));
end

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by