Read in integer values from .txt file

8 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2019-11-15
data = load('NameOfTheFile.txt');

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by