Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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?

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


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

hold on

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

No tags are associated with this thread.

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.

Contact us