Small data won't plot correctly

I have acceleration data that I cannot get to plot in Matlab. Here is the basics of what the data looks like (Z does deviated from 1 - this is only 8 lines of ~70million).
And the graphs looks like this:
Bonus points if you can help me create a stacked plot of dive depth data and three axes' of acceleration (X, Y, Z).
Thank you in advance!

7 件のコメント

Walter Roberson
Walter Roberson 2023 年 11 月 12 日
axes not labeled. y range up to 10^89. 2D plot... we really have no idea how your data is being used to plot.
At the moment I would guess that something is being divided by the y value
Mathieu NOE
Mathieu NOE 2023 年 11 月 13 日
maybe sharing some data would help
Taylor Azizeh
Taylor Azizeh 2023 年 11 月 14 日
Right, sorry about that. Here is an example file.
Taylor Azizeh
Taylor Azizeh 2023 年 11 月 14 日
Walter Roberson
Walter Roberson 2023 年 11 月 14 日
And the graphs looks like this:
No, the plot definitely does not look like what you pictured, not unless you are multiplying some of the entries by roughly 10^100
>> min(T(:,[4 5 6 8:end]))
ans =
1×14 table
X Y Z Depth Temp___C_ location_lat location_lon height_msl ground_speed satellites hdop signal_strength SensorRaw Metadata
______ ______ _____ _____ _________ ____________ ____________ __________ ____________ __________ ____ _______________ _________ ________
-0.063 -0.063 0.892 0 18.6 NaN NaN NaN NaN NaN NaN NaN 989 NaN
>> max(T(:,[4 5 6 8:end]))
ans =
1×14 table
X Y Z Depth Temp___C_ location_lat location_lon height_msl ground_speed satellites hdop signal_strength SensorRaw Metadata
_ _____ _____ _____ _________ ____________ ____________ __________ ____________ __________ ____ _______________ _________ ________
0 0.053 1.144 0 18.8 NaN NaN NaN NaN NaN NaN NaN 997 NaN
>
You need to be more clear about what you are plotting.
Bonus points if you can help me create a stacked plot of dive depth data and three axes' of acceleration (X, Y, Z).
The ten Depth entries that are not NaN, are all exactly 0. No stacked plot based on dive depth is possible.
Mathieu NOE
Mathieu NOE 2023 年 11 月 15 日
double check your data
I see mostly NaN's all over the place - what is that record ??
Peter Perkins
Peter Perkins 2023 年 11 月 16 日
Bonus points to Walter for sneaking in an example of recently-added support for "math on tables":
min(T(:,[4 5 6 8:end]))

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2023a

タグ

質問済み:

2023 年 11 月 12 日

コメント済み:

2023 年 11 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by