readmatrix returning last column as NaN
Mostrar comentarios más antiguos
Hello Reader!
I am practicing with figures and am practicing with custom cursors.
To save having a very large matrix in the code instead I have a .txt file with the matrix.
customcursor = readmatrix('smileyfacematrix.txt') ;
As you can see in the image the last column of customcursor is entirely NaN.

This is what the text file looks like.

I can not understand why the last column MATLAB converts entirely to NaN and how I can stop this from happening.
1 comentario
Philip
el 24 de Mayo de 2024
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!