reading from a text file
Show older comments
hello everyone,
i am trying to read from a text file which has the following format
X: 549.123 Y: -100.235 Z: -230.89
X: 550.123 Y: -101.235 Z: -231.89
X: 551.123 Y: -102.235 Z: -232.89
X: 552.123 Y: -103.235 Z: -233.89
X: 553.123 Y: -104.235 Z: -234.89
the problem is when i read using textscan it stores the data in 3*10 cells where the first cell format is in the first column X: and in second column 549.123.
i want to store data in 3 matrices each of 1*5 ?
eagerly waiting for a reply.
Accepted Answer
More Answers (0)
Categories
Find more on Text Files 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!