How to plot 5D in MATLAB
Show older comments
I have four variables and one output. The variables are A, B, C, D. All are 11*1 matrix. Based on the four avriables, the Z is calculated. I would like to plot A, B, C, D, Z as a 5D plot. Is it possible in MATLAB? If possible, How can I do that?
3 Comments
Walter Roberson
on 10 May 2023
Should we assume that F-Theory is true and plot using A vertical, B horizontal, C and D as the two time dimensions, and Z as colour?
You may find that simpler representations are more readable. Considering that you're asking how to create a complicated and potentially unreadable visualization of some particular data, being familiar with the context is likely necessary in order to judge whether any particular solution is appropriate.
the cyclist
on 12 May 2023
Are you able to hand-draw what your five-dimensional plot would look like, and upload the image?
Accepted Answer
More Answers (1)
Walter Roberson
on 12 May 2023
0 votes
You cannot. A screen has two independent physical coordinates. You can use animation to add a time coordinate. You can use color to represent another coordinate. That is four coordinates representable, but you have five coordinates.
1 Comment
Walter Roberson
on 12 May 2023
Ah, I had forgotten a possibility. You could code at least part of your project in Simulink, and build a Virtual Reality World, https://www.mathworks.com/help/sl3d/build-virtual-reality-worlds.html . With appropriate VR googles, that would give you an apparent additional dimension. However... the encoding of one of the dimensions in virtual space requires that you have time to move your head position to get different viewpoints, and to some degree that conflicts with using time to encode one of the physical coordinates. You would need to make compromises such as making the time-encoded coordinate relatively slow compared to the rate you would be likely to want to move your head to access the virtual physical coordinates.
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!