Got Questions? Get Answers.
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

Thread Subject:
rotate the plot3

Subject: rotate the plot3

From: pink

Date: 2 Jun, 2011 12:30:20

Message: 1 of 1

I have a toggle button, I want to rotate the plot3 on the axes with the structure of the "start " and "stop" and the direction of the axis of rotation is x, if anyone can give you an idea?

example code:
function togglebutton1_Callback(hObject, eventdata, handles)
t = 0:0.5:10*pi;
x = exp(-t/20).*cos(t);
y = exp(-t/20).*sin(t);
z = t;
handle_h=plot3(x,y,z)

if (handles.togglebutton1,'Value')==1
 % set handle_h and start rotation
else
 % set handle_h abd stop rotation
end

thanks
pink

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