How to convert all data from text file into a single column?
Show older comments
I am trying to analyze an earthquake signal. For which, I need to plot the acceleration time history. I have obtained earthquake data in the excel sheet as attached in the excel file. The first eight data in a row are the data for increasing time. Next acceleration is the second row. How can I convert the data into a single column so that I can correlate the data with time?
Accepted Answer
More Answers (1)
Achyut Paudel
on 16 Jul 2018
0 votes
4 Comments
Achyut Paudel
on 16 Jul 2018
That's exactly what the original code does...did you not try it???
>> EQ(1:16)
ans =
0.1580
-0.3040
0.0480
0.1780
0.0970
0.1620
0.1060
0.1550
0.1110
0.1550
-0.2960
-0.3810
0.0960
0.1340
0.1440
0.1090
>>
Achyut Paudel
on 16 Jul 2018
dpb
on 16 Jul 2018
You're welcome; my wondering what the rest of the data are/were in the initial response may have concealed the result...
Categories
Find more on Earthquake Engineering in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!