How to re-scale a part of 2D matrix?
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Nisar Ahmed
 am 19 Sep. 2022
  
    
    
    
    
    Beantwortet: Matt J
      
      
 am 19 Sep. 2022
            Hi 
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);
0 Kommentare
Akzeptierte Antwort
  Matt J
      
      
 am 19 Sep. 2022
        range=VD>1901&VD<1919;
Pe_OPT(range,:) = rescale(Pe_OPT(range,:), 2.778e+07, 3.1005e+07);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

