Visualization Technique

Is there an example out there that uses square coordinates to draw a square and color it?
See the following link with a spherical example (the example is near the bottom of the page):
Best,
Christoper

Antworten (1)

Sean de Wolski
Sean de Wolski am 25 Okt. 2011

0 Stimmen

fill3([50 50 50 50],[0 100 100 0],[0 0 100 100],'b')
?

6 Kommentare

Christopher
Christopher am 25 Okt. 2011
Thank you Sean de! That did the trick..:-) Do you think I could do a 3-D sqaure visualization??
Best,
Christopher
Sean de Wolski
Sean de Wolski am 25 Okt. 2011
like a cube?
Sure, use a few different fill3s along different planes. Or even easier use patches
doc patch
Christopher
Christopher am 25 Okt. 2011
Yes, like a cube. We are using the square as a visualization for a survey. Essentially, the larger the square the better the score and vise verse. The survey data will be imported into Matlab from spss.
Sean de Wolski
Sean de Wolski am 25 Okt. 2011
I would just use 6 fill3's then corresponding to the 6 faces of the cubes. Have their corner coordinates (and perhaps color too!) be dependent on a scale factor that expands/contracts the cube.
Christopher
Christopher am 25 Okt. 2011
Thank you again. Now that I think about it, I will stick with the first option. I think we can better interpret a square versus a cube (the larger the square the better the score). When you use [50,50,50,50] does this represent the 4-scores along the scale?
Walter Roberson
Walter Roberson am 25 Okt. 2011
scatter3() with a pointsize vector that is proportional to the score, and with Marker set to 's' to get squares.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 25 Okt. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by