Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
24
Tilt/MediaDati_ThL.m
Executable file
24
Tilt/MediaDati_ThL.m
Executable file
@@ -0,0 +1,24 @@
|
||||
% Questa routine calcola le medie (giornaliere o per intervalli definiti)
|
||||
% necessarie per le elaborazioni successive
|
||||
|
||||
function [Dati_ThL,ARRAYdateThL] = MediaDati_ThL(val_ThL,TimeThL,NdatiMedia,FileName)
|
||||
|
||||
text = 'MediaDati_ThL function started';
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
fprintf(fileID,fmt,text);
|
||||
|
||||
%% Dati Temperatura
|
||||
[r,~]=size(val_ThL);
|
||||
if NdatiMedia > r
|
||||
NdatiMedia = r;
|
||||
end
|
||||
Dati_ThL = smoothdata(val_ThL,'gaussian',NdatiMedia);
|
||||
|
||||
ARRAYdateThL = TimeThL;
|
||||
|
||||
text = 'MediaDati_ThL function closed';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user