matlab - How to prevent a decimal number being rounded to a whole number? -
I am using this code to get numerical data from the file I am reading:
[filename, pathname] = uGateFile ('* .txt *', 'file to study'); Then it can be used to import% file from full file file = fullfile (PathName, file name)% fullfile keeps path and file name in a file; A = []; Fid = fopen (file); Tline = fgets (fid); Whereas ischar (tline) parts = textscan (tline, '% d;'); If the number (parts {1}) & gt; 0 A = [A; Parts {:} ']; End tline = fgets (fid); End fclose (fid); X = A (:, 2) Y = A (:, 7)
It works fine, but I am doing this issue: when the numbers are displayed in the command window Those whole numbers were scored by number with decimal digits
for example:.
165,98 166,38 166,78 167,18 167,57 167,97 168,37 168,77 169,17 169,56 169,96 170,36 170,76 171 , 16, 171,55, 171, 95
For this:
<161 code>is there some variation I could do in my code to show the original data, but to complete the round numbers?
Comments
Post a Comment