How to solve this problem?

1 回表示 (過去 30 日間)
Aanqq
Aanqq 2020 年 12 月 14 日
コメント済み: Aanqq 2020 年 12 月 14 日
normalize the data X by subtracting the minimum value and dividing by the range over each dimension?

回答 (2 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 14 日
This?
data=rand(1,10); %Exampe data
min_val=min(data);
max_val=max(data);
norm_data=(data-min_val)/(max_val-min_val)
  1 件のコメント
Aanqq
Aanqq 2020 年 12 月 14 日
Thanks

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


Ameer Hamza
Ameer Hamza 2020 年 12 月 14 日
You can use rescale(): https://www.mathworks.com/help/matlab/ref/rescale.html to get the values in a range you want. For example,
X_new = rescale(X, 0, 1)
  1 件のコメント
Aanqq
Aanqq 2020 年 12 月 14 日
Thanks

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

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by