Sync from remote server: 2025-10-12 18:56:41

This commit is contained in:
2025-10-12 18:56:59 +02:00
commit 7e8ee264aa
553 changed files with 161447 additions and 0 deletions

27
RSN/approx.m Executable file
View File

@@ -0,0 +1,27 @@
% Funzione che approssima il dato alla terza cifra decimale (millesimi di
% grado)
function [AlfaX,AlfaY,TempDef] = approx(AlfaX,AlfaY,TempDef,FileName)
fileID = fopen(FileName,'a');
fmt = '%s \r';
text = 'approx function started';
fprintf(fileID,fmt,text);
conv = AlfaX*1000;
conv = round(conv);
AlfaX = conv/1000;
conv = AlfaY*1000;
conv = round(conv);
AlfaY = conv/1000;
conv = TempDef*10;
conv = round(conv);
TempDef = conv/10;
text = 'approx function executed correctly';
fprintf(fileID,fmt,text);
fclose(fileID);
end