From: Sebastien on 22 Apr 2010 05:07 Dear all, i'm a new comer on matlab, and i want to plot a surface who is a combinaison of 3 3d matrix. each 3d matrix is a 3*3*147 the third dimension of the matrix correspond to the layer ID (here i have 147 layers) resultU resultV resultW each point of the surface is a combinaison of the 3 matrix. for example the first point of the surface to be plotted is : resultU(1,1,1),resultV(1,1,1),resultW(1,1,1) the second is resultU(1,2,1),resultV(1,2,1),resultW(1,2,1) etc ... i try to use the surf function, but matlab told me that i have an error regarding the Z dimension ? regards Sebastien
From: mat001 on 22 Apr 2010 05:55 "Sebastien " <sebastien.yazinski(a)gmail.com> wrote in message <hqp3k9$ias$1(a)fred.mathworks.com>... > Dear all, > > i'm a new comer on matlab, and i want to plot a surface who is a combinaison of 3 3d matrix. > each 3d matrix is a 3*3*147 > the third dimension of the matrix correspond to the layer ID (here i have 147 layers) > > resultU > resultV > resultW > > each point of the surface is a combinaison of the 3 matrix. > > for example the first point of the surface to be plotted is : > > resultU(1,1,1),resultV(1,1,1),resultW(1,1,1) > > the second is > resultU(1,2,1),resultV(1,2,1),resultW(1,2,1) > > etc ... > > i try to use the surf function, but matlab told me that i have an error regarding the Z dimension ? > > regards > > Sebastien you can do one thing use squeeze function to solve your problem. squeeze and then imagesc I use these two commands for 3d matrx plots
|
Pages: 1 Prev: Inverse FFT:ifft Next: Need some help with the Data Acquisition Toolbox |