Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

Tags:
  1. Jan 19, 2014 #1
    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.
     
  2. jcsd
  3. Jan 20, 2014 #2

    DrClaude

    User Avatar

    Staff: Mentor

    Read the files one at a time and put the contents in a 3D matrix, while iterating the coordinate z file by file.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: How to plot 3d graphs from multiple .dat files in matlab?
Loading...