Thread Subject:
Isosurface transposed X,Y axes?

Subject: Isosurface transposed X,Y axes?

From: Chuck37

Date: 18 Aug, 2010 23:25:23

Message: 1 of 1

Can someone explain this?

E=zeros(100,100,100);
for x=1:100
 for y=1:100
  for z=1:100
   E(x,y,z)=norm([x y z]-[10 20 30]);
  end
 end
end

patch(isosurface(1:100,1:100,1:100,E,10))

One might expect a sphere centered on (10,20,30) of radius 10. Right? However,

hold on
plot3(10,20,30,'o')

does not put an 'o' in the center of the sphere. Why not? It appears to be transposed in x/y. If I loop through z and transpose all the x/y sub-matrices, it looks as I would expect. Am I doing something wrong?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us