When to transpose an m*n matrix extracted from a multi dimensional matrix for use with surf command
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Folks,
I have an equation which is a fn of 5 variables. This results in an 5-Dimensional matrix Output=f(a,b,c,d,e) when i define it inside a multi for loop of 5.
I use the squeeze function to plot desired quantities, eg
surf(a,b, squeeze(output(:,:,1,1,1)
surf(b,c, squeeze(output(1,:,:,1,1)
surf(c,d, squeeze(output(1,1,:,:,1)
surf(a,d, squeeze(output(:,1,1,:,1)
surf(a,e, squeeze(output(:,1,1,1,:)
The problem is some of these results from the squeeze command are rows rather than vectors and thus the matching of the 2 inputs with the corresponding output is not correct when plotting the surfaces. Any idea how i correct this? Thanks in advance.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots 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!