add Nans in time windows Ms

This commit is contained in:
Konstantinos Leptokaropoulos 2020-06-08 09:11:51 +02:00
parent 8d624be927
commit 1177e49e6d
2 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ end
function [HP] = TDHMagDistWrapper(method, time_win_data, mmin, iop,Mmax) function [HP] = TDHMagDistWrapper(method, time_win_data, mmin, iop,Mmax)
cd SSH cd SSH
for j=1:size(time_win_data,2);M1(j)=max(time_win_data(j).M);end for j=1:size(time_win_data,2);if isempty(time_win_data(j).Time);M1(j)=NaN;else;M1(j)=max(time_win_data(j).M);end;end
Mmaxcat=max(M1);Mmax=max([Mmaxcat Mmax]) Mmaxcat=max(M1);Mmax=max([Mmaxcat Mmax])
for i=1:size(time_win_data,2) for i=1:size(time_win_data,2)

View File

@ -402,7 +402,7 @@ end
function [HP] = TDHMagDistWrapper(method, time_win_data, mmin, iop,Mmax) function [HP] = TDHMagDistWrapper(method, time_win_data, mmin, iop,Mmax)
cd SSH cd SSH
for j=1:size(time_win_data,2);M1(j)=max(time_win_data(j).M);end for j=1:size(time_win_data,2);if isempty(time_win_data(j).Time);M1(j)=NaN;else;M1(j)=max(time_win_data(j).M);end;end
Mmaxcat=max(M1);Mmax=max([Mmaxcat Mmax]) Mmaxcat=max(M1);Mmax=max([Mmaxcat Mmax])
for i=1:size(time_win_data,2) for i=1:size(time_win_data,2)