Reading in array from txt file
Show older comments
I'm trying to read in a txt file but MATLAB is only reading in the last column and showing zeros where the other data should be? I checked the txt file and the data is there, and all the values are separated by spaces. Any idea why the first columns are being read in as zeros? My code looks like this:
load ScenarioA.txt; load ScenarioB.txt; ScenarioA
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT 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!