Skip to content
Snippets Groups Projects
Commit 32ac07c9 authored by Yves Gouriou's avatar Yves Gouriou
Browse files

Pb lorsque le tableau "freq" ne contient pas 2 élèments

if size(freq,1) == 2
parent 8495231e
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ if fid ~= -1
% loop on all TsgRaw data
% -----------------------
for i=1:nbrecords
% remove leading and trailing white space when string contain NaN
% ---------------------------------------------------------------
if ~strcmp(strtrim(TsgRaw(i,:)), 'NaN')
......@@ -139,8 +139,10 @@ if fid ~= -1
% --------------------
if isempty( errmsg )
if ~isempty( freq )
ssjt_freq(i) = freq(1)/19 + 2100;
cndc_freq(i) = sqrt(freq(2)*2100 + 6250000);
if size(freq,1) == 2
ssjt_freq(i) = freq(1)/19 + 2100;
cndc_freq(i) = sqrt(freq(2)*2100 + 6250000);
end
end
else
sprintf( '\n Function readTsgDataLabview' );
......
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