Effacer les filtres
Effacer les filtres

Convert file to matrix

3 vues (au cours des 30 derniers jours)
Maria Nogueira
Maria Nogueira le 13 Déc 2020
Commenté : Maria Nogueira le 13 Déc 2020
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Déc 2020
readmatrix()
  3 commentaires
Walter Roberson
Walter Roberson le 13 Déc 2020
readmatrix will skip it automatically.
Maria Nogueira
Maria Nogueira le 13 Déc 2020
oh I didn´t know that! thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by