Path: news.mathworks.com!not-for-mail
From: "helper " <spamless@nospam.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: simple 3D volume visualization
Date: Tue, 13 May 2008 23:17:02 +0000 (UTC)
Organization: Timothy S. Farajian, Inc.
Lines: 23
Message-ID: <g0d7he$kab$1@fred.mathworks.com>
References: <g0d3t7$2so$1@fred.mathworks.com>
Reply-To: "helper " <spamless@nospam.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210720622 20811 172.30.248.35 (13 May 2008 23:17:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 23:17:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1272923
Xref: news.mathworks.com comp.soft-sys.matlab:468262


> As a very simple example, take a 20x20x20 zero matrix, and
> put random integers in a 5x5x5 cube in the center. How 
can I
> plot the surface of this cube, regardless of the values? 
How
> can I plot just a wire frame of the surface of the cube? 

Well, this isn't "regardless of the values", but it shows 
an example of how to create the wire mesh you mention using 
ISOSURFACE:


A = zeros(20,20,20); % 20-by-20-by-20 zeros
A(8:12,8:12,8:12) = 1; % 5-by-5-by-5 cube of 1's

h = patch(isosurface(A,.99)); % Create "contour" at 0.99

set(h,'FaceColor','none') % "Hide" faces
view(3) % Rotate to 3-D view


I'm not sure, however, what you actually want.  How does 
this example differ from what you actually want?