Message Boards Message Boards

0
|
1856 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Create a Matrix using Table and RandomReal

I am trying to create a Matrix 4x4 with elements from [-1,1], using the commands RandomReal and Table. When I am trying to use the command Table, I destroy my code. Any advice?

enter image description here

3 Replies

Crossposted here.

POSTED BY: Rohit Namjoshi
Posted 1 year ago
mat=Table[RandomReal[{-1,1}],{4},{4}]
POSTED BY: Bill Nelson

Thank you!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract