how to pass row by row elements of a multidimensional array to a function
Show older comments
how to pass row by row elements of a multidimensional array to a function
1 Comment
Use a loop, just like the introductory tutorials show:
Answers (1)
Ngoc Thanh Hung Bui
on 15 Apr 2018
Edited: Ngoc Thanh Hung Bui
on 15 Apr 2018
0 votes
for i = 1:length(A) % A is your matrix
function(A(i,:));
end
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!