applying arrayfun on n-dimensional matrixes

1 次查看(过去 30 天)
hi guys,
i need your help in solving the following problem:
how can i generalize the following for any n dimensional array:
reshape(arrayfun(@(x,y)sprintf('%d,%d',x,y),C{:},'un',0),size(M));
M is my matrix and C is my matrix of indexes.
thanks in advance.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by