Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'print and dimensions' topicStudent Support Forum > General > Archives > "print and dimensions"

Next Comment >Help | Reply To Topic
Author Comment/Response
phuyer Chen
09/07/12 10:23am

Hi, everyone, I am a beginner in MATHEMATICA and I have two questions

Do[arr[i] = 1 + 0.5 i, {i, 1, 5}]

First, when I type the command above in *.nb file, then input Dimensions[arr] to obtain its dimension but the result is not what I want to see. For example typing size(arr) will return 1 5 in command window MATLAB.

Second, How to make all value of arr appear in *.nb
Sometimes just typing variable name such arr does not work. For example typing arr will return 1.5 2 2.5 3 3.5 in command window MATLAB.

So could anyone tell me how to do them in MATHEMATICA? Thanks so much!

Could anyone help me to solve it?


URL: ,

Subject (listing for 'print and dimensions')
Author Date Posted
print and dimensions phuyer Chen 09/07/12 10:23am
Re: print and dimensions Bill Simpson 09/07/12 1:24pm
Next Comment >Help | Reply To Topic