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

1 次查看(过去 30 天)
how to pass row by row elements of a multidimensional array to a function

回答(1 个)

Ngoc Thanh Hung Bui
编辑:Ngoc Thanh Hung Bui 2018-4-15
for i = 1:length(A) % A is your matrix
function(A(i,:));
end

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by