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

4 ビュー (過去 30 日間)
Virajan Verma
Virajan Verma 2018 年 10 月 10 日
コメント済み: KSSV 2018 年 10 月 11 日
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

回答 (2 件)

KSSV
KSSV 2018 年 10 月 10 日
REead about load, importdata, textscan. If your file has only numbers then load / importdata should work.
  2 件のコメント
Virajan Verma
Virajan Verma 2018 年 10 月 10 日
Can u give me one example of loading x1,y1,z1 and x2,y2,z2??
KSSV
KSSV 2018 年 10 月 10 日
Attach your file....

サインインしてコメントする。


Virajan Verma
Virajan Verma 2018 年 10 月 10 日
Here it is
  15 件のコメント
Virajan Verma
Virajan Verma 2018 年 10 月 11 日
According to you, how many values of Lxn_dash should come??
KSSV
KSSV 2018 年 10 月 11 日
It depends on the number of elements and number of nodes in each element.
Thanks officially for accepting the answer.

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by