Read in integer values from .txt file

조회 수: 1 (최근 30일)
Benjamin Cai
Benjamin Cai 2019년 11월 15일
답변: Walter Roberson 2019년 11월 15일
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에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by