Variables from CSV column read incorrectly
After importing csv file into project, no issues are seen when file is opened in project folder window, however when put into a variable all numbers >100 are divide as such (e.g. 100 = 1.00, 200 = 2.00) this is seen for the variables under p. All outputs where this occurs are NaN
Variables are used for V3.06.16 of The Gibbs SeaWater (GSW) Oceanographic Toolbox gsw_SA_from_SP(SP,p,long,lat) function explained here https://www.teos-10.org/pubs/gsw/html/gsw_SA_from_SP.html. Although I don’t believe this is related to the issue.
The code used is as follows:
csv1 = ‘VL_69190_190228100353.csv’
data1 = readmatrix(csv1, ‘NumHeaderLines’, 1);
SP1 = data1(:, 4);
t1 = data1(:, 3);
p1 = data1(:, 2);
lat1 = 39.2404;
long1 = 2.3605;After importing csv file into project, no issues are seen when file is opened in project folder window, however when put into a variable all numbers >100 are divide as such (e.g. 100 = 1.00, 200 = 2.00) this is seen for the variables under p. All outputs where this occurs are NaN
Variables are used for V3.06.16 of The Gibbs SeaWater (GSW) Oceanographic Toolbox gsw_SA_from_SP(SP,p,long,lat) function explained here https://www.teos-10.org/pubs/gsw/html/gsw_SA_from_SP.html. Although I don’t believe this is related to the issue.
The code used is as follows:
csv1 = ‘VL_69190_190228100353.csv’
data1 = readmatrix(csv1, ‘NumHeaderLines’, 1);
SP1 = data1(:, 4);
t1 = data1(:, 3);
p1 = data1(:, 2);
lat1 = 39.2404;
long1 = 2.3605; After importing csv file into project, no issues are seen when file is opened in project folder window, however when put into a variable all numbers >100 are divide as such (e.g. 100 = 1.00, 200 = 2.00) this is seen for the variables under p. All outputs where this occurs are NaN
Variables are used for V3.06.16 of The Gibbs SeaWater (GSW) Oceanographic Toolbox gsw_SA_from_SP(SP,p,long,lat) function explained here https://www.teos-10.org/pubs/gsw/html/gsw_SA_from_SP.html. Although I don’t believe this is related to the issue.
The code used is as follows:
csv1 = ‘VL_69190_190228100353.csv’
data1 = readmatrix(csv1, ‘NumHeaderLines’, 1);
SP1 = data1(:, 4);
t1 = data1(:, 3);
p1 = data1(:, 2);
lat1 = 39.2404;
long1 = 2.3605; csv, r2024b MATLAB Answers — New Questions