初始化提交
This commit is contained in:
commit
1a6f8b2f83
28
.gitattributes
vendored
Normal file
28
.gitattributes
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
*.fig binary
|
||||
*.mat binary
|
||||
*.mdl binary diff merge=mlAutoMerge
|
||||
*.mdlp binary
|
||||
*.mexa64 binary
|
||||
*.mexw64 binary
|
||||
*.mexmaci64 binary
|
||||
*.mlapp binary
|
||||
*.mldatx binary
|
||||
*.mlproj binary
|
||||
*.mlx binary
|
||||
*.p binary
|
||||
*.sfx binary
|
||||
*.sldd binary
|
||||
*.slreqx binary merge=mlAutoMerge
|
||||
*.slmx binary merge=mlAutoMerge
|
||||
*.sltx binary
|
||||
*.slxc binary
|
||||
*.slx binary merge=mlAutoMerge
|
||||
*.slxp binary
|
||||
|
||||
## Other common binary file types
|
||||
*.docx binary
|
||||
*.exe binary
|
||||
*.jpg binary
|
||||
*.pdf binary
|
||||
*.png binary
|
||||
*.xlsx binary
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
# List of untracked files to ignore
|
2
Imu_allan.prj
Normal file
2
Imu_allan.prj
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"/>
|
33
get_imudata.m
Normal file
33
get_imudata.m
Normal file
@ -0,0 +1,33 @@
|
||||
function data = get_imudata(filepath, dataStructArray)
|
||||
% 打开文件以供读取
|
||||
fileID = fopen(filepath, 'r');
|
||||
|
||||
if fileID == -1
|
||||
error('无法打开文件:%s', filepath);
|
||||
end
|
||||
|
||||
% 逐行读取文件内容
|
||||
tline = fgetl(fileID);
|
||||
while ischar(tline)
|
||||
% 使用正则表达式来匹配行中的数值部分
|
||||
tokens = regexp(tline, '-?\d+\.\d+', 'match');
|
||||
|
||||
% 将字符串数组转换为数值数组
|
||||
values = str2double(tokens);
|
||||
|
||||
% 构建结构体
|
||||
if ~isempty(values)
|
||||
epoch = values(1); % 假设第一个数值是历元
|
||||
dataStructArray(end + 1).time = epoch;
|
||||
dataStructArray(end).values = values(2:end);
|
||||
end
|
||||
|
||||
tline = fgetl(fileID);
|
||||
end
|
||||
|
||||
% 关闭文件
|
||||
fclose(fileID);
|
||||
|
||||
% 返回填充好数据的结构体数组
|
||||
data = dataStructArray;
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="测试"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="test" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="其他"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="other" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="便利"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="convenience" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="无"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="none" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="派生"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="derived" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="设计"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="design" type="Label"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="READ_ONLY" Name="工件"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="artifact" type="Label"/>
|
2
resources/project/Project.xml
Normal file
2
resources/project/Project.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info MetadataType="fixedPathV2"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info ReadOnly="1" SingleValued="1" DataType="None" Name="分类"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="FileClassCategory" type="Category"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location=".gitignore" type="File"/>
|
@ -0,0 +1,6 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info>
|
||||
<Category UUID="FileClassCategory">
|
||||
<Label UUID="design"/>
|
||||
</Category>
|
||||
</Info>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="get_imudata.m" type="File"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="imud.txt" type="File"/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location=".gitattributes" type="File"/>
|
2
resources/project/root/6x1BhZX_fLnKpcwqra0qFwv1jIgp.xml
Normal file
2
resources/project/root/6x1BhZX_fLnKpcwqra0qFwv1jIgp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="Root" type="Extensions"/>
|
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQd.xml
Normal file
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQd.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info Name="imu_allan"/>
|
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQp.xml
Normal file
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="ProjectData" type="Info"/>
|
2
resources/project/root/KAXfQgCar2Yb8zOxgvf9hdmLP1Ep.xml
Normal file
2
resources/project/root/KAXfQgCar2Yb8zOxgvf9hdmLP1Ep.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="Root" type="EntryPoints"/>
|
2
resources/project/root/NmGqIpAwUJcXFyLjFAGnU9uyN5Yp.xml
Normal file
2
resources/project/root/NmGqIpAwUJcXFyLjFAGnU9uyN5Yp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="Root" type="ProjectData"/>
|
2
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kp.xml
Normal file
2
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="Root" type="Categories"/>
|
2
resources/project/root/qaw0eS1zuuY1ar9TdPn1GMfrjbQp.xml
Normal file
2
resources/project/root/qaw0eS1zuuY1ar9TdPn1GMfrjbQp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info location="Root" type="Files"/>
|
2
resources/project/rootp.xml
Normal file
2
resources/project/rootp.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info/>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info/>
|
Loading…
x
Reference in New Issue
Block a user