Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9322

Matrix operation

From Andrey Demidov <andrey.demidov@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Matrix operation
Date 2012-03-31 08:46 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jl6g9d$cp1$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi,

I have a matrix:

>> s1 = {{0, 4, 3, 6, 1, 0, 0, 30}, {0, 6, 16, 8, 0, 1, 0, 256}, {0, 4, 1,
    10, 0, 0, 1, 9}, {1, -2, -4, -3, 0, 0, 0, 0}}

>> MatrixForm[s1]

Now, I need to get another matrix (s2) where:

   - s2[i, j] = s1[i, j] where i <> 4
   - s2[i, j] = s1[i, j] + 4 * s1[i - 1, j] where i == 4

What is the best way to get s2 ?

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Matrix operation Andrey Demidov <andrey.demidov@gmail.com> - 2012-03-31 08:46 +0000
  Re: Matrix operation Murta <rodrigomurtax@gmail.com> - 2012-04-01 07:41 +0000

csiph-web