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 日

0 投票

readmatrix()

3 件のコメント

Maria Nogueira
Maria Nogueira 2020 年 12 月 13 日
but then how do i delete the first line ?
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 件)

カテゴリ

ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by