How to read an input text file having multiple values??
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
KSSV
2018년 10월 10일
REead about load, importdata, textscan. If your file has only numbers then load / importdata should work.
Virajan Verma
2018년 10월 10일
댓글 수: 15
KSSV
2018년 10월 11일
It depends on the number of elements and number of nodes in each element.
Thanks officially for accepting the answer.
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!