No Change My Matrix Matlab

0

I'm doing a division of a column of a Matrix All that data column by data I divide it between other data (In specific that I already have)

all right up there if you make me my division of my Matrix

>> MatH(posy,:)./(MatH(posy,posx))

ans =

   -1.0000    1.0000    0.5000         0    0.5000         0         0
but when I print my Matrix again It does not make the changes

>> MatH

MatH =

     3     6     0     0     0     0     0
     0     3    -8     1     0     0     2
    -2     2     1     0     1     0     0
     1    -6     0     0     0     1    15

What should I do? so that the changes I make in a column are applied after I want to print my Matrix

    
asked by Alex Burke Cooper 15.02.2018 в 05:06
source

1 answer

0

You simply have to tell Matlab to save the result of the operation in the column that interests you. That is:

MatH(posy,:) = MatH(posy,:)./(MatH(posy,posx));
    
answered by 15.04.2018 в 17:08