필터 지우기
필터 지우기

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 CenterFile 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