matlab function on a grid along third dimension

2 vues (au cours des 30 derniers jours)
Amrutdyuti Swamy
Amrutdyuti Swamy le 26 Juin 2022
Réponse apportée : Matt J le 26 Juin 2022
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.

Réponses (1)

Matt J
Matt J le 26 Juin 2022
No, you can't. However a 3x3x3 array is too small for a loop to suffer any serious penalties.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by