Convert file to matrix

1 次查看(过去 30 天)
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by