readmatrix returning last column as NaN
Ältere Kommentare anzeigen
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 Kommentar
Philip
am 24 Mai 2024
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!