DMUG-Archiv 2003

Frühere   Chronologischer Index   Spätere
Vorherige   Thematischer Index   Nächste

Set::setps: b[[1]] in assignment of part is not a symbol.

Sowwy, immer noch mit Mathematica 3.0,
hab aber folgendes Problem:

Folgendes functioniert:

In[1]:= a = Table[0, {2}]
Out[1]= {0,0}

In[2]:= a[[1]] = 1
Out[2]= 1

In[3]:= b = Table[0, {2}, {3}]
Out[3]= {{0, 0, 0}, {0, 0, 0}}

Aber wenn Ich versuche

In[4]:= b[[1]][[1]] = 2

sagt er (mathematica):

Set::setps: b[[1]] in assignment of part is not a symbol.
Out[4]= 2

und er verweigert sich das Element an zu passen:

In[5]:= b[[1]][[2]]
Out[5]= 0

Wie kann Ich doch, ohne viel Mühe, die Werte im Matrix b anpassen?

danke,

arie veltman




============================================
*      Ir. A.T. Veltman
*      Energy research Centre of the Netherlands  ECN
*      Technological Services & Consultancy
*      Postbus 1, 1755 ZG  Petten, The Netherlands
*      Tel (+31) (0)224 564556, Fax (+31) (0)224 568407
*      veltman@XXXXXXX.nl
*      www.ecn.nl 
============================================
DISCLAIMER:

The information contained in this communication is confidential and may be
legally privileged. It is intended solely for the use of the individual or
entity to whom it is addressed and others authorised to receive it. If you
are not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking any action in reliance of the contents of
this information is strictly prohibited and may be unlawful. ECN is neither
liable for the proper nor complete transmission of the information contained
in this communication nor for any delay in its receipt.


Antworten:
Frühere   Chronologischer Index   Spätere
Vorherige   Thematischer Index   Nächste

DMUG DMUG-Archiv, http://www.mathematica.ch/archiv.html