MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > using mesh to make 3D plot 

Hi, 
"Windell " <windelljones@gmail.com> wrote in message <h859vn$802$1@fred.mathworks.com>... 
Thanks for your reply Wayne! Just tried what you suggested and I'm still receiving an error. Here is my code. 
Subject: using mesh to make 3D plot From: Christopher Rouxel Date: 12 Aug, 2010 15:48:24 Message: 4 of 26 
This GUI might help you: 
"Windell " <windelljones@gmail.com> wrote in message <h86sol$1h9$1@fred.mathworks.com>... 
Hi christian, 
"Yehonatan " <math8yehonatan@gmail.com> wrote in message <klbuc0$4bf$1@newscl01ah.mathworks.com>... 
OK Christian, 
hi yehonatan 
OK Christian, Lets start... 
hi yehonatan 
This is a biggy.... 
hi yehonathan 
Because the surf function creates 3d squares and not 3d triangles. Every surface part the surf function creates is a 3d square, therefore it need 4 data points. If you saw the youtube video, you can see that in the bottom of the sphere shape it looks like the surf function creates triangles but in fact its a square that have a twin data point. 
For further understanding, In the YouTube video I created the sphere x,y and z matrices using the matlab sphere function. In the first section I plotted the data point that I created using the plot3 function. In the second section I took every four combination of data points and told the surf function to plot. With that said, you can see how all of the combinations combined create the result sphere surface. 
about combination how are you define the order? 
and also in the example you posted [(1,1),(1,2).......] represent the lines and rows of all the matrix (x,y,z) or just the matrix Z ? 
hi yehonatan 
Ok... 
So, 
Hi yehonatan 
Let's see now an example... 
thanks i understand clearly this part 
Ummmmm...... 
hi yehonatan 

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.