Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: multiplying matrice rows

  • To: mathgroup at
  • Subject: [mg44355] Re: multiplying matrice rows
  • From: poujadej at (Jean-Claude Poujade)
  • Date: Wed, 5 Nov 2003 10:02:27 -0500 (EST)
  • References: <bo7o7e$af9$>
  • Sender: owner-wri-mathgroup at

Dragutin Culinovic <dragutin.culinovic at> wrote in message news:<bo7o7e$af9$1 at>...
> How can I to multiply enumerated list of rows of an matrice on following 
> way:
> To multyply each row (except rows a,b and c)of matrice A withe row a of 
> the same matrice, and replace that row (not a row) with result.
> rows b and c are last rows, row a is any row in the range 1->b(exclusive)
Example of solution with your notation :

In[1]:= m = {{m11,m12},{m21,m22},{m31,m32},{m41,m42},{m51,m52}};

In[2]:= a=2; b=4; 

In[3]:=MapAt[#*m[[a]]&, m, Table[{i},{i, a+1, b-1}]]
Out[3]={{m11,m12},{m21,m22},{m21 m31,m22 m32},{m41,m42},{m51,m52}}


  • Prev by Date: Re: Simple Question -- Incrementing All Elemnts in A list by 1
  • Next by Date: Re: serious NDSolve bug?
  • Previous by thread: Re: multiplying matrice rows
  • Next by thread: Simple Question -- Incrementing All Elemnts in A list by 1