From: Rajendra Gad on 5 Jul 2010 06:09 "Ethan " <emontag.nospam(a)leuzeusa.com> wrote in message <fuq3bt$l9r$1(a)fred.mathworks.com>... > What does the data consist of? > > You need to understand what you're plotting before you plot it. > Each element of the 3D matrix, A, has an 3 indices, x,y,z, and a value, A(x,y,z). > > What do the indices represent in your data? I.e., what does the position of the > value in the matrix represent? > > What does the value itself represent? > Are there dependent and independent variables? > > Now decide what you want to plot. > > Most likely, you really want to plot multiple 2D planes from your data, eg. > offset=max(A(:));figure; hold on; for i=1:40; surf(A(:,:,i)+offset*(i-1));end > I added an offset so the surfs would be stacked. 40 planes of 240x360 is likely > too much info to visualize all at once. > > (For mesh(X,Y,Z) and surf(X,Y,Z) , each of the input matrices represents a > coordinate value. It's like plot3(X(:),Y(:),Z(:),'o') without all the nice graphics.)
From: Rajendra Gad on 5 Jul 2010 06:12 The function plot3(X(:),Y(:),Z(:),'o') dose not work. I want to plot the A[1,1,i] and similarly do it for all elements of x , y dimensions Regards Rajendra "Ethan " <emontag.nospam(a)leuzeusa.com> wrote in message <fuq3bt$l9r$1(a)fred.mathworks.com>... > What does the data consist of? > > You need to understand what you're plotting before you plot it. > Each element of the 3D matrix, A, has an 3 indices, x,y,z, and a value, A(x,y,z). > > What do the indices represent in your data? I.e., what does the position of the > value in the matrix represent? > > What does the value itself represent? > Are there dependent and independent variables? > > Now decide what you want to plot. > > Most likely, you really want to plot multiple 2D planes from your data, eg. > offset=max(A(:));figure; hold on; for i=1:40; surf(A(:,:,i)+offset*(i-1));end > I added an offset so the surfs would be stacked. 40 planes of 240x360 is likely > too much info to visualize all at once. > > (For mesh(X,Y,Z) and surf(X,Y,Z) , each of the input matrices represents a > coordinate value. It's like plot3(X(:),Y(:),Z(:),'o') without all the nice graphics.)
From: Rajendra Gad on 5 Jul 2010 06:16 The function plot3(X(:),Y(:),Z(:),'o') dose not work. I want to plot the A[1,1,i] and similarly do it for all elements of x , y dimensions Regards Rajendra "Ethan " <emontag.nospam(a)leuzeusa.com> wrote in message <fuq3bt$l9r$1(a)fred.mathworks.com>... > What does the data consist of? > > You need to understand what you're plotting before you plot it. > Each element of the 3D matrix, A, has an 3 indices, x,y,z, and a value, A(x,y,z). > > What do the indices represent in your data? I.e., what does the position of the > value in the matrix represent? > > What does the value itself represent? > Are there dependent and independent variables? > > Now decide what you want to plot. > > Most likely, you really want to plot multiple 2D planes from your data, eg. > offset=max(A(:));figure; hold on; for i=1:40; surf(A(:,:,i)+offset*(i-1));end > I added an offset so the surfs would be stacked. 40 planes of 240x360 is likely > too much info to visualize all at once. > > (For mesh(X,Y,Z) and surf(X,Y,Z) , each of the input matrices represents a > coordinate value. It's like plot3(X(:),Y(:),Z(:),'o') without all the nice graphics.)
|
Pages: 1 Prev: Monte Carlo Simulation HELP! Next: ??? Reference to a cleared variable |