How to read an input text file having multiple values??

1 view (last 30 days)
0 0 0 0.5 0 0.049406182 1 0 0.097122055 0 0.51 0 0.5 0.51 0.049406182 1 0.51 0.097122055
1.5 0 0.143149239 2 0 0.187489294 1.5 0.51 0.143149239 2 0.51 0.187489294
Read these values of x1,y1,z1 x2,y2,z2 x3,y3,z3....and so on

Answers (2)

KSSV
KSSV on 10 Oct 2018
REead about load, importdata, textscan. If your file has only numbers then load / importdata should work.

Virajan Verma
Virajan Verma on 10 Oct 2018
Here it is
  15 Comments
Virajan Verma
Virajan Verma on 11 Oct 2018
According to you, how many values of Lxn_dash should come??
KSSV
KSSV on 11 Oct 2018
It depends on the number of elements and number of nodes in each element.
Thanks officially for accepting the answer.

Sign in to comment.

Categories

Find more on Data Import and Export in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!