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개)

카테고리

질문:

2020년 12월 13일

댓글:

2020년 12월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by