Normalizing data to 100 Percent

18 ビュー (過去 30 日間)
Perri Johnson
Perri Johnson 2022 年 7 月 14 日
コメント済み: Star Strider 2022 年 7 月 22 日
Hi,
I'm trying to take strain and vertical force data I have and normalize the cycle to 100% from start to finish for one cycle so that I can see if there is a correlation between the two. Does anyone have any advice for how I could go about this process?
I've tried using the normalize function within MATLAB but that only returns the z-score. I've also tried using a threshold funciton to normalize the data between two established points (start/stop of testing) but the problem with this is that you don't know if those specific thresholds line up with each other between the strain and force data. Seems more fabricated.

採用された回答

Star Strider
Star Strider 2022 年 7 月 14 日
編集済み: Star Strider 2022 年 7 月 14 日
One option with normalize is to use the 'range' method or methodtype, and multiply the result by 100. See the documentation for details.
EDIT — (14 Jul 2020 at 19:30)
Example —
v = randi(17, 1, 10)
v = 1×10
3 13 12 6 15 6 5 8 17 6
nv = normalize(v, 'range') * 100
nv = 1×10
0 71.4286 64.2857 21.4286 85.7143 21.4286 14.2857 35.7143 100.0000 21.4286
.
  8 件のコメント
Star Strider
Star Strider 2022 年 7 月 22 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by