Data import and Header Line

1 回表示 (過去 30 日間)
Dhimitri Cekrezi
Dhimitri Cekrezi 2021 年 5 月 14 日
コメント済み: Star Strider 2021 年 5 月 14 日
Hello everyone,
I have been given a file data0.txt which has the following info:
x0 y0 z0 f0
10 10 10 225
How can I import the data so that the header line (x0 y0 z0 f0) is ignored and the numeric data below are imported as a matrix?
  2 件のコメント
Alex Alex
Alex Alex 2021 年 5 月 14 日
Dhimitri Cekrezi
Dhimitri Cekrezi 2021 年 5 月 14 日
Thank you!!!

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

採用された回答

Star Strider
Star Strider 2021 年 5 月 14 日
There are several ways to do this, likely the easiest is to use the readmatrix function (introduced in R2019a).
  3 件のコメント
Star Strider
Star Strider 2021 年 5 月 14 日
My pleasure!
Star Strider
Star Strider 2021 年 5 月 14 日
If my Answer helped you solve your problem, please Accept it!
.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by