Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

multiple image on one figure

9 views
Skip to first unread message

vinay kumar

unread,
Aug 27, 2010, 2:22:22 AM8/27/10
to
Hi everyone,

I want to plot 3 images as 3 planes on one figure; i.e., 3 images shifted by some distance. Finally they must look something like

http://www.uniplot.de/documents/en/_images/Waterfall-en.png

could anyone help me out.

Thanks in advance.

vinay kumar

unread,
Aug 27, 2010, 2:23:08 AM8/27/10
to

Grzegorz Knor

unread,
Aug 27, 2010, 3:07:21 AM8/27/10
to
"vinay kumar" <vinay...@juit.ac.in> wrote in message <i57liu$76t$1...@fred.mathworks.com>...
For example you can use SURFACE command, something like this:
---------------------------
clear all
clc

load mandrill
X1 = X;
map1 = map;

load clown
X2 = X;
map2 = map;

load trees
X3 = X;
map3 = map;

x = meshgrid(1:10);
y = zeros(size(x));
z = x';

surface(x,y,z,flipud(X1),...
'FaceColor','texturemap',...
'EdgeColor','none',...
'CDataMapping','direct')

hold on

surface(x,y+1,z,flipud(X2),...
'FaceColor','texturemap',...
'EdgeColor','none',...
'CDataMapping','direct')

surface(x,y+2,z,flipud(X3),...
'FaceColor','texturemap',...
'EdgeColor','none',...
'CDataMapping','direct')

colormap(gray)

view(-35,45)
---------------------------

regards

0 new messages