help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exporting plot as 3d image or vrml


From: RT
Subject: exporting plot as 3d image or vrml
Date: Tue, 4 Jun 2013 05:46:25 -1000

Greetings All

I'm trying to export a plot as a 3D Image or vrml file how can I do this?  I have the vrml package installed but there's no real examples.

PS:  I'm using ubuntu 13.04 64bit and octave 3.6.4

Some example code with a plot is below:

clear all, clf

t = 0:pi/20:2.25*pi;

petals=4

angle_orig= 360/petals %

plot3 ((t).*cos(t), (t).*sin(t), (t),'k*','markersize',3); %0 deg ees

hold on

plot3 ((t).*sin((t)), (t).*cos((t)), (t),'ok-','markersize',3); %0 deg ees

hold on

plot3 ((t).*cos(t+angle_orig*pi/180), (t).*sin(t+angle_orig*pi/180), (t),'m*','markersize',3); %0 deg ees

hold on

plot3 ((t).*sin(t+angle_orig*pi/180), (t).*cos(t+angle_orig*pi/180), (t),'om-','markersize',3); %0 deg ees

hold on

plot3 ((t).*cos(t+angle_orig*2*pi/180), (t).*sin(t+angle_orig*2*pi/180), (t),'c*','markersize',3); %0 deg ees

hold on

plot3 ((t).*sin(t+angle_orig*2*pi/180), (t).*cos(t+angle_orig*2*pi/180), (t),'oc-','markersize',3); %0 deg ees

hold on

plot3 ((t).*cos(t+angle_orig*3*pi/180), (t).*sin(t+angle_orig*3*pi/180), (t),'r*','markersize',3); %0 deg ees

hold on

plot3 ((t).*sin(t+angle_orig*3*pi/180), (t).*cos(t+angle_orig*3*pi/180), (t),'or-','markersize',3); %0 deg ees


Thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]