No BSD License  

Highlights from
Jsurf

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 3.47 KB File ID: #8763
image thumbnail

Jsurf

by J De Freitas

 

20 Oct 2005 (Updated 20 Oct 2005)

3D plot onto an arbitrary surface.

| Watch this File

File Information
Description

JSURF is similar in almost all respects to the standard SURF plot except that it admits a second matrix T of z-coordinates of size [m,n] that is used to plot over the base surface described by coordinates (x,y,z).
 
JSURF(x,y,z,T) plots the 3D surface T onto the surface described by (x,y,z). JSURF(x,y,z,-T) plots on the underside of the surface. The colour scale is determined by the range of T.

JSURF(...,'PropertyName','PropertyValue',...) sets the surface property values for the object.
 
h = JSURF(...) returns the handle to the plot object.

%Peaks riding on a Saddle
P = peaks(51);
[x,y] = meshgrid(-4:8/50:4,-4:8/50:4);
z = sqrt(10^2*ones(size(x)) - 1.2*x.^2 + 1.5*y.^2);
jsurf(x,y,z,P);
axis vis3d;
axis off;
set(gca,'DataAspectRatio',[1 1 1]);

This plot function was developed under version 7 of Matlab and no guarantees can be given for versions lower than this.

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements V6 users would need 'axescheck.m'.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Sep 2007 sm bin

Dear sir
please send me the axescheck m.file
thanks

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized J De Freitas 22 Oct 2008 08:03:29
plotting J De Freitas 22 Oct 2008 08:03:29
surface plot J De Freitas 22 Oct 2008 08:03:29
surface J De Freitas 22 Oct 2008 08:03:29
3d J De Freitas 22 Oct 2008 08:03:29
matrix J De Freitas 22 Oct 2008 08:03:29
size J De Freitas 22 Oct 2008 08:03:29
graphics J De Freitas 22 Oct 2008 08:03:29

Contact us at files@mathworks.com