How to plot 3d graphs from multiple .dat files in matlab?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
s_hy
Messages
57
Reaction score
0
In my project I basically need to plot 3D color coded surface graphs using MATLAB taking input from multiple .dat files (i have 1000 .dat files). In each file I have parameters x and y, and when I take multiple files, each having a different value of z, I can finally plot a graph. so does anyone know how to take input from these multiple .dat files and draw a 3D graph in MATLAB?

thank you.
 
Physics news on Phys.org
Read the files one at a time and put the contents in a 3D matrix, while iterating the coordinate z file by file.