フィルターのクリア

Load .txt file into matrix form

4 ビュー (過去 30 日間)
Jennifer Good
Jennifer Good 2023 年 12 月 8 日
コメント済み: Les Beckham 2023 年 12 月 8 日
I am trying to use load syntax to load this txt file into matlab matrix (nX6)
  1 件のコメント
Voss
Voss 2023 年 12 月 8 日
X = load('X_deg_10.txt')
X = 302×7
1.0e+06 * 0 6.7800 0.1000 0.2000 -0.0001 0.0081 -0.0002 0 6.7800 0.1000 0.2000 -0.0001 0.0081 -0.0002 0.0000 6.7756 0.2810 0.1955 -0.0003 0.0081 -0.0002 0.0000 6.7669 0.4619 0.1908 -0.0005 0.0081 -0.0002 0.0001 6.7538 0.6424 0.1860 -0.0007 0.0081 -0.0002 0.0001 6.7365 0.8226 0.1811 -0.0009 0.0080 -0.0002 0.0001 6.7148 1.0022 0.1761 -0.0011 0.0080 -0.0002 0.0001 6.6889 1.1812 0.1710 -0.0013 0.0080 -0.0002 0.0002 6.6587 1.3594 0.1657 -0.0014 0.0080 -0.0002 0.0002 6.6243 1.5368 0.1604 -0.0016 0.0079 -0.0002

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

採用された回答

Les Beckham
Les Beckham 2023 年 12 月 8 日
That looks like a good candidate for readmatrix.
mtx = readmatrix('X_deg_10.txt');
size(mtx)
ans = 1×2
302 7
  2 件のコメント
Jennifer Good
Jennifer Good 2023 年 12 月 8 日
This worked! Thanks!
Les Beckham
Les Beckham 2023 年 12 月 8 日
You are quite welcome.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by