Code covered by the BSD License  

Highlights from
Move Sphere

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3.96 KB File ID: #23097
image thumbnail

Move Sphere

by Husam Aldahiyat

 

25 Feb 2009 (Updated 27 Feb 2009)

Creates a randomly coloured sphere and moves it from point A to point B with speed V.

| Watch this File

File Information
Description

movsph(r,A,B,V,op1) creates a randomly coloured sphere with radius r and moves it from point A to point B with speed V.

This can be useful when designing graphical simulations of statistical equations or when you want to moves something around (easier than plotting a person and moving it). The code plots the ground and adjusts the axis too if it is to be used on its own.

Accompanying the main code is a simple interface that makes use of it.

Acknowledgements
This submission has inspired the following:
Graphical Simulation of an Elevator, MATLAB Pool
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
27 Feb 2009

New features, added example interface.

Tag Activity for this File
Tag Applied By Date/Time
sphere Husam Aldahiyat 25 Feb 2009 13:38:48
rotate Husam Aldahiyat 25 Feb 2009 13:38:48
move Husam Aldahiyat 25 Feb 2009 13:38:48
ball Husam Aldahiyat 25 Feb 2009 13:38:48
pool Husam Aldahiyat 25 Feb 2009 13:38:48

Contact us at files@mathworks.com