Files
matlab-python/Tilt/schema.m

18 lines
476 B
Matlab
Executable File

% Funzione che mi ricostruisce la composizione della catena
function catena = schema(idTool,conn,FileName)
text = 'schema function started';
fileID = fopen(FileName,'a');
fmt = '%s \r';
fprintf(fileID,fmt,text);
comando = ['select nodetype_id, depth, num from nodes where tool_id = ''' idTool ''' order by num'];
catena = fetch(conn,comando);
text = 'Array scheme defined correctly. schema function ended';
fprintf(fileID,fmt,text);
fclose(fileID);
end