What Does A([i j], = J*A([i j], ; Mean in MatLab?

  • Context: MATLAB 
  • Thread starter Thread starter RyMi
  • Start date Start date
  • Tags Tags
    Matlab Mean
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
RyMi
Messages
7
Reaction score
0
What Does A([i j],:) = J*A([i j],:); Mean in MatLab?

Title pretty much describes it all. I have no familiarity with MatLab and I'm translating an algorithm into Java. A and J are matrices and i and j are integers. I already have a Matrix class in Java that can handle most matrix operations, I just need to know what this means.
Thanks in advance
 
Physics news on Phys.org


The ":" means all columns (or all rows if it were the 1st argument).

I think the [i j] in the first argument means row i and row j only.

So therefore A([i j],:) refers to all of (that is, all columns of) rows "i" and "j" only.

The "*" is just matrix multiplication but I guess you already know that part. :)