Code covered by the BSD License  

Highlights from
Spin/Rotate your plot!

4.0

4.0 | 1 rating Rate this file 16 Downloads (last 30 days) File Size: 3.04 KB File ID: #40572
image thumbnail

Spin/Rotate your plot!

by

 

Spins your plot in the z-axis!

| Watch this File

File Information
Description

Why so stiff? Take a spin!

But why spin? Because you can.

This class allows you to spin your 3D plots. At this time, only mesh and surf are supported.

Your SURFACEPLOT object will have a black background by default. This results in your plot automagically turn awesome.

If you're boring and stiff, you may disable the black in the constructor method. But you wouldn't do that, would you?

Side Note: The function is currently effective only on mesh and surf
plots. Maybe I'll add in more as time comes. Maybe I'll get distracted
whenever I set out on this task. Maybe...

--------------------------------------
Having benefited from this community over the years, this is my first file contribution. I have learned much from many of you - thank you very much!

Feel free to use and improve as you see fit. Because you can. I would love to see how far you can mod this code.

I got this idea on Wednesday, when I was delivery a joint seminar with our partners from the test and measurement industry. There was this really cool visualisation on the Rohde & Schwarz oscilloscope that caught my eye.

It was a spectral plot of a sweep signal, with the past frames fading in the background. And so I thought, "Hey, let's do something cool with MATLAB visuals too!"

MATLAB is a really powerful product, but there are times where we want to see some cool graphics. Just because.

I have done some fancy MATLAB stuff in the past (including the fading scan effects!), and I hope I can refine my code and submit them bit by bit.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
09 Mar 2013 Shady

never mind - i figured it out, but the graphics just zoom in and out instead of spinning -_-

08 Mar 2013 arnold

great stuff, build me something similar a while ago, not as nice though. Thanks!
Maybe you add a way to simply change speed and step size.

Even better: Write an exporter for recording a movie or animated GIF.
I and maybe many others would like that for their presentations :)

Contact us