Read in integer values from .txt file

12 views (last 30 days)
Benjamin Cai
Benjamin Cai on 15 Nov 2019
Answered: Walter Roberson on 15 Nov 2019
I have a long list of numbers, how I am able to read this numbers and store them into array
17.3695
-2.4689
-7.5794
5.6635
-8.1444
-2.8155
18.3094
-2.9392
-15.5383
7.8862
1.4196
-2.8001
13.5078
-4.8509
-15.9727
10.9095
4.7908
-7.6174
5.0398
-3.2274
-12.3372
11.9530
8.6603
-13.9603
-0.1294
3.9876
-6.9950
9.4958
5.3284
-16.1049
0.5033
13.7825
-5.8637
0.4984
5.0905
-14.4201
1.4647
16.4723
-9.7189
-5.6749

Answers (1)

Walter Roberson
Walter Roberson on 15 Nov 2019
data = load('NameOfTheFile.txt');

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!