Skip to content
Snippets Groups Projects
Verified Commit 070f736e authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

feat(savemat): add function to save as matfiles

parent 47d9f1f0
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ data/wtFiles/*/*
data/arduinoFiles/*
data/ORIGINAL_RAW_DATA
data/cleaned
data/cleaned_MAT
!*.md
function savemat(idFile, ExpData)
% SAVEMAT Save synced and clean data to a MAT-file.
% -----
% TODO
% ----------------------------------------------------------------------------------------------
% (c) Copyright 2022 University of Liege
% Author: Thomas Lambert <t.lambert@uliege.be>
% ULiege - Aeroelasticity and Experimental Aerodynamics
% MIT License
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Make filename
[~, file, ~] = fileparts(idFile);
savedir = strsplit(file, '-');
savefile = fullfile('data/cleaned_MAT', savedir(1), [file, '.mat']);
if ~exist(string(savefile), 'file')
save(string(savefile), 'ExpData');
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment