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.

 Accepted Answer

Walter Roberson
Walter Roberson on 13 Dec 2020

0 votes

readmatrix()

3 Comments

but then how do i delete the first line ?
readmatrix will skip it automatically.
oh I didn´t know that! thank you so much

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!