Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

[?] Add number to list element?

Posted 8 years ago
Posted 8 years ago
In[1]:= uu = 2;

In[2]:= helper = Table[RandomComplex[], {2}, {3}]

Out[2]= {
         {0.671075 + 0.123629 I, 0.732442 + 0.287433 I, 0.447885 + 0.727767 I}, 
         {0.440247 + 0.57757 I, 0.33895 + 0.468506 I,0.871482 + 0.113165 I}
        }

In[3]:= 1 + helper

Out[3]= {
         {1.67107 + 0.123629 I, 1.73244 + 0.287433 I, 1.44788 + 0.727767 I}, 
         {1.44025 + 0.57757 I, 1.33895 + 0.468506 I, 1.87148 + 0.113165 I}
        }

In[4]:= 1 + helper[[uu, 3]]

Out[4]= 1.87148 + 0.113165 I
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard