How do you plot RMS of a Colormap?

1 回表示 (過去 30 日間)
Anonyms
Anonyms 2022 年 1 月 11 日
回答済み: Star Strider 2022 年 1 月 11 日
Looking to get an RMS value of a 3D plot based on Z Values. I have a colormap that has speed and RPM on x and y with Z as the dependent value.

回答 (1 件)

Star Strider
Star Strider 2022 年 1 月 11 日
Depending on the desired result, either use the rms function with the entire matrix (using the (:) convention to force it to be a vector) or take the rms values across a specific dimension.
Z = randn(10);
rms_all = rms(Z(:))
rms_all = 1.0607
rms_across_rows = rms(Z,2)
rms_across_rows = 10×1
0.9526 0.9594 0.8025 1.1049 1.1172 1.1101 1.0367 1.2585 0.8551 1.2994
.

カテゴリ

Help Center および File ExchangeColor and Styling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by