Re: Making rectangular matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg27154] Re: Making rectangular matrix
- From: Roland Franzius <Roland.Franzius at uos.de>
- Date: Thu, 8 Feb 2001 04:40:42 -0500 (EST)
- Organization: Universitaet Osnabrueck
- References: <95qt5s$t2g@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
To multiply matrix elements of a given matrix A by another matrix B use
Map[Times[B,#]&,A,{2}]
Use A[[i,k]]=B for direct placement
To convert a block matrix into a normal matrix obeying matrix
multiplication use something like
tensorProduct[a_, b_] :=
Partition[
Flatten[Map[Transpose, Outer[Times, a, b]]],
Length[a] Length[b]]
jeevan wrote:
>
> How can I make a square or rectangle matrix(2-D) that can be placed
> at random locations of a bigger 2-D matrix.Thank you.
--
Roland Franzius
+++ exactly <<n>> lines of this message have value <<FALSE>> +++