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:
problem in visual 3d

Subject: problem in visual 3d

From: mahdi roozbhani

Date: 10 Dec, 2010 10:20:04

Message: 1 of 1

I wrote these lines :

for i=1:sx;
 if (i-center).^2+(i-center).^2+(i-center).^2<=r.^2

this code is a 3d matrix with zeros array except than 1 arrays in central of this matrix like a sphere.

my question is, how can I show this sphere in visual 3d ? If the way for showing this sphere is not visual 3d, what is the way for showing this sphere ?

thanks friends

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