Numeric array values replaced with zeros
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!