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.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Dic. de 2020

0 votos

readmatrix()

3 comentarios

Maria Nogueira
Maria Nogueira el 13 de Dic. de 2020
but then how do i delete the first line ?
Walter Roberson
Walter Roberson el 13 de Dic. de 2020
readmatrix will skip it automatically.
Maria Nogueira
Maria Nogueira el 13 de Dic. de 2020
oh I didn´t know that! thank you so much

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 13 de Dic. de 2020

Comentada:

el 13 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by