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


Groups > comp.soft-sys.math.mathematica > #9300 > unrolled thread

Re: Equality...

Started byAdriano Pascoletti <adriano.pascoletti@uniud.it>
First post2012-03-30 09:36 +0000
Last post2012-03-30 09:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Equality... Adriano Pascoletti <adriano.pascoletti@uniud.it> - 2012-03-30 09:36 +0000

#9300 — Re: Equality...

FromAdriano Pascoletti <adriano.pascoletti@uniud.it>
Date2012-03-30 09:36 +0000
SubjectRe: Equality...
Message-ID<jl3uri$3ja$1@smc.vnet.net>
Evaluate the l.h. side:

In[3]:= Evaluate[Array[Subscript[a, #1, #2] & , {3, 4}]] =
 Array[RandomReal[1], {3, 4}]
Out[3]= {{0.10417076732503783[1, 1], 0.10417076732503783[1, 2],
  0.10417076732503783[1, 3],
     0.10417076732503783[1, 4]}, {0.10417076732503783[2, 1],
  0.10417076732503783[2, 2],
     0.10417076732503783[2, 3], 0.10417076732503783[2, 4]},
   {0.10417076732503783[3, 1], 0.10417076732503783[3, 2],
  0.10417076732503783[3, 3],
     0.10417076732503783[3, 4]}}


Adriano Pascoletti

2012/3/29 Roozbeh <rhazrat@gmail.com>

> Hi,
>
> I have a matrix with nxn varaibles an entry and want to assign values
> to each of the entries. How can I do this in one go?
>
> I was hoping something like this works, but it doesn't...
>
> Array[Subscript[a, #1, #2] &, {3, 4}] = Array[Random[1], {3, 4}]
>
> Any tips are apprecited.
>
> R
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web