Extracting data from .txt file
Hi,
I have two files (Text files) named as Force.txt and Disp.txt. I want to extracct data from these two files and plot a graph where force value will be on the Y axis and Displacement Values will be on the X axis. In the text files I have data of step numbers ( There are total 89 steps). In file disp.txt, thre are 89 values of displacement for 89 steps and it is obtained from node no. 1964.
On the other hand, the force values will be for nodes 1-3 7-10 73-76 342-346 447-451 982-984 988-991 1054-1057 1323-1327 1428-1432 1963 1965-1968 1973-1976 2242-2246 2287-2291 2822-3593 (total 833 nodes) and for 89 steps. I have attached the files with this question.
I want to extract data like the following table: Then want to plot a graph as mentioned above.
Force ( summed value of 833 nodes) Disp.(for node 1964)
Step 1 ***** *****
Step 2 **** ****
Step 3 ***** ****
Step 4 ***** ****
Step 5 ***** ****
……
Step 89 ***** ****
Can anyone help me in writing a matlab code? I would appreciate your kind assistance.
Thank you in advance.Hi,
I have two files (Text files) named as Force.txt and Disp.txt. I want to extracct data from these two files and plot a graph where force value will be on the Y axis and Displacement Values will be on the X axis. In the text files I have data of step numbers ( There are total 89 steps). In file disp.txt, thre are 89 values of displacement for 89 steps and it is obtained from node no. 1964.
On the other hand, the force values will be for nodes 1-3 7-10 73-76 342-346 447-451 982-984 988-991 1054-1057 1323-1327 1428-1432 1963 1965-1968 1973-1976 2242-2246 2287-2291 2822-3593 (total 833 nodes) and for 89 steps. I have attached the files with this question.
I want to extract data like the following table: Then want to plot a graph as mentioned above.
Force ( summed value of 833 nodes) Disp.(for node 1964)
Step 1 ***** *****
Step 2 **** ****
Step 3 ***** ****
Step 4 ***** ****
Step 5 ***** ****
……
Step 89 ***** ****
Can anyone help me in writing a matlab code? I would appreciate your kind assistance.
Thank you in advance. Hi,
I have two files (Text files) named as Force.txt and Disp.txt. I want to extracct data from these two files and plot a graph where force value will be on the Y axis and Displacement Values will be on the X axis. In the text files I have data of step numbers ( There are total 89 steps). In file disp.txt, thre are 89 values of displacement for 89 steps and it is obtained from node no. 1964.
On the other hand, the force values will be for nodes 1-3 7-10 73-76 342-346 447-451 982-984 988-991 1054-1057 1323-1327 1428-1432 1963 1965-1968 1973-1976 2242-2246 2287-2291 2822-3593 (total 833 nodes) and for 89 steps. I have attached the files with this question.
I want to extract data like the following table: Then want to plot a graph as mentioned above.
Force ( summed value of 833 nodes) Disp.(for node 1964)
Step 1 ***** *****
Step 2 **** ****
Step 3 ***** ****
Step 4 ***** ****
Step 5 ***** ****
……
Step 89 ***** ****
Can anyone help me in writing a matlab code? I would appreciate your kind assistance.
Thank you in advance. extract data MATLAB Answers — New Questions