matlab function on a grid along third dimension
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Matt J
2022년 6월 26일
No, you can't. However a 3x3x3 array is too small for a loop to suffer any serious penalties.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!