Numeric array values replaced with zeros
Mostrar comentarios más antiguos
I am using the Import Data icon in the Home toolbar to import data from .csv files. I am able to import only the columns I want as a numeric matrix and exclude any rows with unimportable data. When I call these variables in the command window, all the values in every row are replaced with zeros, except for a column of ones. If I click the variable in the workspace, the matrix has the correct values. Do you have any advice as to where I am going wrong or what might be happening? I have uploaded a screenshot of the issue with the variable highlighted in the workspace, the correct matrix values showing in the Variables, and the matrix of zeros and ones that results when I type the variable (WT3speed) and enter into the command window. I have also uploaded the .mat file of the variable, WT4speed. This is not unique to this variable. It has been happening when I import other data of this type.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Cell Arrays 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!