Convert file to matrix

2 ビュー (過去 30 日間)
Maria Nogueira
Maria Nogueira 2020 年 12 月 13 日
コメント済み: Maria Nogueira 2020 年 12 月 13 日
I have this file , which is a text file:
Basically I need to write a script that will open this file, read it, delete the first line and convert the rest to a matrix where the zeros outside the main diagonal become INF.

採用された回答

Walter Roberson
Walter Roberson 2020 年 12 月 13 日
readmatrix()
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 12 月 13 日
readmatrix will skip it automatically.
Maria Nogueira
Maria Nogueira 2020 年 12 月 13 日
oh I didn´t know that! thank you so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by