Azzera filtri
Azzera filtri

When to transpose an m*n matrix extracted from a multi dimensional matrix for use with surf command

4 visualizzazioni (ultimi 30 giorni)
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.

Risposte (0)

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by