How to import coordinates from a txt/csv file
Show older comments
Hi everyone,
I am very new to MATLAb so this is probably a very basic question. I am trying to write a script to analyse some results I have, I can output my results as either txt or csv files whichever works best. My issue is the file outputs the coordinates in the form (0,0,0) so I am not sure what the best way to import this would be if I wanted to create a 3D scatter plot, as the brackets seem to be causing problems.
Thanks for any help you can offer!
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 18 Apr 2014
Edited: Azzi Abdelmalek
on 18 Apr 2014
A=dlmread('Yourfile.txt')
Or
A=xlsread('Yourfile.csv')
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!