matlab function on a grid along third dimension
显示 更早的评论
Hi,
I have a three dimensional array of size 3x3x3. I want to apply matlab functions (specifically 'fitdist') along the third dimension for each grid point. Is there a way to do it without using for loops. For example, i know we can calculate mean along the third dimension using the function mean(A,3). Would appreciate any help. Thanks.
回答(1 个)
Matt J
2022-6-26
0 个投票
No, you can't. However a 3x3x3 array is too small for a loop to suffer any serious penalties.
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!