Can we apply scatter3() on high dimension matrix?

Hi community members,
i have a matrix. i want to apply scatter3 . is it possible because usually we can apply on 3 colums.
is there any other function which we can apply to visulaize a matrix with respect to numbers.
A = [ 1 2 3 5 6 7 23 12 6;
3 4 4 4 23 17 22 45 12;
11 3 1 3 5 55 76 12 45 9;
- - - - - - - - --- --]
Regards,

Antworten (1)

Walter Roberson
Walter Roberson am 2 Mär. 2021
Yes, but it can become quite difficult to understand.
You can use
scatter3(x, y, z, PointSize, Color)
Here PointSize and Color can each be data the same length as x. This gives you 5 dimensions to work with: x, y, z, size, color.

3 Kommentare

M.S. Khan
M.S. Khan am 2 Mär. 2021
Thanks Mr. Walter Roberson for your reply but how will we take x, y and z.
usually if A is matrix then we take x = A(:,1), xy= A(:,2) and z = A(:,3)
Regards,
Your A is a matrix, and you can use any 5 of the 9 columns.
With some work you can also use alpha (transparency) to encode data... but that gets very difficult to understand.
With even more work you could encode a data value as texture.
You could also encode a value as shape.
I cannot think at the moment of how you might encode all 9 different columns simultaneously. And it would get unreadable several dimensions before that. Most people have problems with four dimensions.
M.S. Khan
M.S. Khan am 3 Mär. 2021
Thanks for your guidance. i will try to use it.
Warm regards

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2020a

Gefragt:

am 2 Mär. 2021

Kommentiert:

am 3 Mär. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by