how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data

9 ビュー (過去 30 日間)
how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
Actually i am writing a matlab code for training in Matlan onramp and didn't getting how to solve the above

採用された回答

Walter Roberson
Walter Roberson 2024 年 1 月 25 日
Given only the above information:
function scaled = scale(data)
scaled = data ./ 1000;
end
The 1000 should be adjusted to whatever is appropriate for your situation.
  5 件のコメント
Stephen23
Stephen23 2024 年 8 月 25 日
"Actually i am writing a matlab code for training in Matlan onramp and didn't getting how to solve the above"
The linked page already tells you the complete content of the SCALE function and exactly where to write it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by