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

回答(1 个)

for i = 1:length(A) % A is your matrix
function(A(i,:));
end

类别

提问:

2018-3-22

评论:

2018-4-17

Community Treasure Hunt

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

Start Hunting!

Translated by