WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
2882 Views
|
2 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Median gave a list as output
Artur Kotarski
Artur Kotarski
Posted
12 years ago
I've got an output for "Median" as a list ,although it a single number . How can I convert it to a number that Mathematica recogises it as number ?
POSTED BY:
Artur Kotarski
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
1
Bruce Miller
Bruce Miller, Wolfram Research
Posted
12 years ago
Did you take the Median of a list or a matrix?
In[1]:= mat = RandomInteger[8, {3, 3}]
Out[1]= {{1, 7, 5}, {1, 6, 6}, {5, 4, 6}}
In[2]:= Median[ mat ]
Out[2]= {1, 6, 6}
In[3]:= Median[Flatten[mat]]
Out[3]= 5
POSTED BY:
Bruce Miller
Reply
|
Flag
1
Artur Kotarski
Artur Kotarski
Posted
12 years ago
Thank You, that is what I wanted .
POSTED BY:
Artur Kotarski
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback