Skip to content
Snippets Groups Projects
Commit 69feb754 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

revert str2double to str2num

parent 3b1f6e4a
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ function [date, time, lat, lon, sst, sss, cond, condRaw, sog, cog] =...
if ColNo.Lat ~=0
% Test si latitude en degre decimal ou degre minute
% --------------------------------------------------
lat = str2double( char(data{ColNo.Lat}{ient}) );
lat = str2num( char(data{ColNo.Lat}{ient}) );
% lat est vide si les latitudes sont en degres minutes.
% Conversion en degre decimal
......@@ -111,7 +111,7 @@ function [date, time, lat, lon, sst, sss, cond, condRaw, sog, cog] =...
end
if ColNo.Lon ~= 0
lon = str2double( char(data{ColNo.Lon}{ient}) );
lon = str2num( char(data{ColNo.Lon}{ient}) );
% lon est vide si les latitudes sont en degres minutes.
% Conversion en degre decimal
......@@ -122,20 +122,20 @@ function [date, time, lat, lon, sst, sss, cond, condRaw, sog, cog] =...
end
if ColNo.Temp ~= 0
sst = str2double( char(data{ColNo.Temp}{ient}) );
sst = str2num( char(data{ColNo.Temp}{ient}) );
end
if ColNo.Sal ~= 0
sss = str2double( char(data{ColNo.Sal}{ient}) );
sss = str2num( char(data{ColNo.Sal}{ient}) );
end
if ColNo.Cond ~= 0
cond = str2double( char(data{ColNo.Cond}{ient}) );
cond = str2num( char(data{ColNo.Cond}{ient}) );
end
if ColNo.Raw ~= 0
condRaw = char( data{ColNo.Raw}{ient} );
end
if ColNo.Sog ~= 0
sog = str2double( char(data{ColNo.Sog}{ient}) );
sog = str2num( char(data{ColNo.Sog}{ient}) );
end
if ColNo.Cog ~= 0
cog = str2double( char(data{ColNo.Cog}{ient}) );
cog = str2num( char(data{ColNo.Cog}{ient}) );
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment