Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
is a 6-simplex/6-polytopes possible?

Subject: is a 6-simplex/6-polytopes possible?

From: J G

Date: 4 Aug, 2011 06:23:13

Message: 1 of 5

I have a matrix with six columns and n rows. All values are between 0 and 1. By using hist(data) I can see that the columns have some particular properties.
I am wondering if it is at all possible to create a 6-simplex/6-polytopes, using the six values in each row as coordinates in order to show density (like scatter3, but with six)?

Subject: is a 6-simplex/6-polytopes possible?

From: Matt J

Date: 4 Aug, 2011 13:39:11

Message: 2 of 5

"J G" wrote in message <j1ddsh$o3r$1@newscl01ah.mathworks.com>...
> I have a matrix with six columns and n rows. All values are between 0 and 1. By using hist(data) I can see that the columns have some particular properties.
> I am wondering if it is at all possible to create a 6-simplex/6-polytopes, using the six values in each row as coordinates in order to show density (like scatter3, but with six)?
==================

You mean you want to display a 6-dimensional scatter plot? What would that look like? And how would you quantify "density" in 6 dimensions?

Subject: is a 6-simplex/6-polytopes possible?

From: matt dash

Date: 4 Aug, 2011 20:58:27

Message: 3 of 5

"J G" wrote in message <j1ddsh$o3r$1@newscl01ah.mathworks.com>...
> I have a matrix with six columns and n rows. All values are between 0 and 1. By using hist(data) I can see that the columns have some particular properties.
> I am wondering if it is at all possible to create a 6-simplex/6-polytopes, using the six values in each row as coordinates in order to show density (like scatter3, but with six)?

Your best bet is a parallel coordinates plot. You can make one with the parallelcoords function if you have the statistics toolbox. Otherwise it's fairly easy to make one using the plot command.

Subject: is a 6-simplex/6-polytopes possible?

From: J G

Date: 4 Aug, 2011 22:53:10

Message: 4 of 5

"matt dash" wrote in message <j1f15j$aae$1@newscl01ah.mathworks.com>...
> "J G" wrote in message <j1ddsh$o3r$1@newscl01ah.mathworks.com>...
> > I have a matrix with six columns and n rows. All values are between 0 and 1. By using hist(data) I can see that the columns have some particular properties.
> > I am wondering if it is at all possible to create a 6-simplex/6-polytopes, using the six values in each row as coordinates in order to show density (like scatter3, but with six)?
>
> Your best bet is a parallel coordinates plot. You can make one with the parallelcoords function if you have the statistics toolbox. Otherwise it's fairly easy to make one using the plot command.

Thanks for your reply. I do have the statistics toolbox and tried using parallelcoords which works. However, because I have so much data it's quite messy... do you know of a way to use this function but only plot the data points (I guess like a dot plot)? I know I can do this using the plot command too, but I have >1000 rows. Thanks.

Subject: is a 6-simplex/6-polytopes possible?

From: matt dash

Date: 5 Aug, 2011 04:34:09

Message: 5 of 5

"J G" wrote in message <j1f7sm$jm$1@newscl01ah.mathworks.com>...
> "matt dash" wrote in message <j1f15j$aae$1@newscl01ah.mathworks.com>...
> > "J G" wrote in message <j1ddsh$o3r$1@newscl01ah.mathworks.com>...
> > > I have a matrix with six columns and n rows. All values are between 0 and 1. By using hist(data) I can see that the columns have some particular properties.
> > > I am wondering if it is at all possible to create a 6-simplex/6-polytopes, using the six values in each row as coordinates in order to show density (like scatter3, but with six)?
> >
> > Your best bet is a parallel coordinates plot. You can make one with the parallelcoords function if you have the statistics toolbox. Otherwise it's fairly easy to make one using the plot command.
>
> Thanks for your reply. I do have the statistics toolbox and tried using parallelcoords which works. However, because I have so much data it's quite messy... do you know of a way to use this function but only plot the data points (I guess like a dot plot)? I know I can do this using the plot command too, but I have >1000 rows. Thanks.

Well, you can just set the linestyle to "none", but all the points might be indistinguishable. You could also add some jitter in the x direction so they don't all overlap. Here's an example:

load fisheriris
labels = {'Sepal Length','Sepal Width',...
          'Petal Length','Petal Width'};
h=parallelcoords(meas,'group',species,'labels',labels);

set(h,'linestyle','none','marker','+')

%add jitter:
for g=1:numel(h)
   xdata=(1:4) + 0.05 * randn(1,4);
   set(h(g),'xdata',xdata);
end

If you're doing this for use outside of matlab, you might have better luck just sticking with the lines and exporting it at high resolution so that they become more distinct.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us