Skip to content
Snippets Groups Projects
Unverified Commit 21833a3b authored by Thomas Lambert's avatar Thomas Lambert
Browse files

feat(loadid): add function to load id table

parent ac0bdb1b
No related branches found
No related tags found
No related merge requests found
loadid.m 0 → 100644
function idTable = loadid(idFile)
% LOADID Load the identification file into a table.
% -----
%
% Syntax:
% idTable = loadid(idFile) load the identification file into a Matlab table.
%
% Inputs:
% idFile: Identification file.
%
% Outputs:
% idTable: Table with the identification data.
%
% See also: readdata.
% ----------------------------------------------------------------------------------------------
% TODO: Check for inconsistencies in the table (in terms of speed, temperature, etc)
% ----------------------------------------------------------------------------------------------
% (c) Copyright 2022 University of Liege
% Author: Thomas Lambert <t.lambert@uliege.be>
% ULiege - Aeroelasticity and Experimental Aerodynamics
% MIT License
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tweak options before import
opts = detectImportOptions(idFile);
opts.VariableNamesLine = 3;
opts.VariableUnitsLine = 4;
opts.DataLines = [5 Inf];
% Import
idTable = readtable(idFile, opts);
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