How to plot data sequences from multiple files in a loop?
Ältere Kommentare anzeigen
Hi,
I have 10 txt data files and I want to plot data from each file after performing opertations on 3D plot. I have given a with 2D plot it works fine. My question is how to plot the same data as 3D using surf or plot3 command. I want to add 3rd dimension which represents number of snapshots. There are 10 files, each file has 214 data samples. Please see attachment:

4 Kommentare
TADA
am 29 Nov. 2018
I think he/she ment the attached images
@Mir When asking a question, it's not very useful to attach code as an image
Luna
am 29 Nov. 2018
I am thinking there should be a .txt attachment above the code shows that.
Jan
am 30 Nov. 2018
@Mir: Prefer to post code as text, because then suggesting modifications can be done by copy&paste. It is tedious to type the shown code again, most of all because you do have this code as text already.
Antworten (2)
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!