How to re-scale a part of 2D matrix?

3 ビュー (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2022 年 9 月 19 日
回答済み: Matt J 2022 年 9 月 19 日
Suppose Pe_OPT is a matrix of size 115 200 and I want to rescale the part between VD>1901&VD<1919. VD is vertical axist of size 115 1, I am using following command which works for a single array but not whole matrix?
Pe_OPT(VD>1901&VD<1919) = rescale(Pe_OPT(VD>1901&VD<1919), 2.778e+07, 3.1005e+07);


Matt J
Matt J 2022 年 9 月 19 日
Pe_OPT(range,:) = rescale(Pe_OPT(range,:), 2.778e+07, 3.1005e+07);

その他の回答 (0 件)


Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by