The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 transparent sphere in 3D plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Maarten Colaers

Belgium
1 Posts

Posted - 05/31/2016 :  08:21:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 and Service Release 0 (Select Help-->About Origin):
Operating System: Win7

Hi,

I have plotted a point in a 3D plot and want to plot a transparant sphere (radius 5) around it.

If i type a command in the command window (found on internet) like:
[x,y,z] = sphere(r);
surf(x+15.23973, y+8.390411, z+10.9482);

I always get this error:
Error: SPHERE(5)
LabTalk expression error: 1600

Can someone help me? I'm not that familiar with Matlab.

Greets,
Maarten

snowli

USA
1379 Posts

Posted - 05/31/2016 :  4:18:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Maarten,

Origin doesn't support using matlab code in our Command window directly.


This will be much easier to be done in latest version of Origin since we support 3d parametric function plots and it can be added to an existing 3d graph.
With your 3d graph window active, choose File: New: Function Plot: 3D Parametric Function Plot... menu.
Click > next the Theme on the top of the dialog to load Sphere.
You can adjust radius, etc.

At the bottom of the dialog, choose Add to Active Graph.
Sphere will be added in graph. You can then double click the sphere to set it to be transparent on Surface tab of Plot Details dialog.

More examples of 3d function plots
http://originlab.com/3dfunctions


Thanks, Snow
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000