Import .txt file and sorting the data from the title
Show older comments
.txt looks like this:
R_ASIS_X 1015.56
R_ASIS_Y 218.86
R_ASIS_Z 939.91
I need to import this data from the .txt into matlab variables. I need a way to search for each variable like 'R_ASIS_X' and then when it's found in the .txt I need to save the corresponding data to the right into a variable.
Can somebody help me with this?
Accepted Answer
More Answers (1)
ahmed nebli
on 1 Sep 2018
0 votes
this link may help you https://www.mathworks.com/help/matlab/ref/fscanf.html
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!