MATLAB Answers

how to plot slice graph from several png files

4 views (last 30 days)
Samaneh Arzpeima
Samaneh Arzpeima on 8 Jul 2018
Hello Everybody I have several png files that show displacement varying with time, for a nice visualization I thought that making a slice graph could be a nice idea, I didn't find any example helping me, I would appreciate any help.Thank you
  3 Comments

Sign in to comment.

Answers (1)

KSSV
KSSV on 9 Jul 2018
Edited: KSSV on 9 Jul 2018
[X,Y,C] = peaks(100) ;
N = 10 ;
Z = ones(size(X)) ;
figure
hold on
for i = 1:N
surf(Z+i,X,Y,C)
end
Rotate for better view.
  1 Comment
Samaneh Arzpeima
Samaneh Arzpeima on 9 Jul 2018
Thank you I already have 25 png files as outputs of another simulation, I have to use those files and align them.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!