Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
28
ATD/punti_noti_PCL.m
Executable file
28
ATD/punti_noti_PCL.m
Executable file
@@ -0,0 +1,28 @@
|
||||
function [cYo,cZo,asseY_Rif_PCL,asseZ_Rif_PCL] = punti_noti_PCL(elab_option,...
|
||||
IDcentralina,DTcatena,FileName)
|
||||
|
||||
Punti_Noti = xlsread([IDcentralina,'-',DTcatena,'.xlsx'],1);
|
||||
|
||||
%% Y
|
||||
cYo = Punti_Noti(:,1);
|
||||
asseY_Rif_PCL(:,1) = diff(cYo);
|
||||
|
||||
%% Z
|
||||
cZo = Punti_Noti(:,2);
|
||||
asseZ_Rif_PCL(:,1) = diff(cZo);
|
||||
|
||||
if elab_option == 1
|
||||
cYo = cYo(2:end)';
|
||||
cZo = cZo(2:end)';
|
||||
else
|
||||
cYo = cYo(1:end-1)';
|
||||
cZo = cZo(1:end-1)';
|
||||
end
|
||||
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
text = 'punti_noti_PCL function worked correctly';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user