5.0

5.0 | 5 ratings Rate this file 19 downloads (last 30 days) File Size: 12.77 KB File ID: #4915

3DScope

by Giampiero Campa

 

12 May 2004 (Updated 02 May 2005)

Code covered by BSD License  

Multitrack 3D Simulink Scope.

Download Now | Watch this File

File Information
Description

This block is an enhanced version of the standard XYGraph simulink block.

The standard XYGraph allows to plot the motion of ONE point in the XY plane. This block allows to plot the motion of SEVERAL points in the XYZ space. In other words each point draws a line as it moves, so you end up having several lines in the plot instead of just one. Of course setting the camera position parameter to [0 0 1] reduces the plot to a classic 2D one.

This block is very useful when you have to compare the motion of a point versus a reference trajectory.

The file M2DScope.mdl contains the block.
The file sfunxyz.m is the actual s-function that implements the scope.

Giampy

Required Products Simulink
MATLAB release MATLAB 5.3 (R11)
Zip File Content  
Other Files lorenz3d.mdl,
m3dscope.mdl,
sfunxyz.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
05 Jul 2004 Ridanto poetro  
12 Jan 2005 Sebas Nani

It's Work

15 Apr 2005 Richard pfisterer

There is a slight bug if there are more than 6 inputs.
To fix, change the end of line 170 that reads
 ,'Color',cord(mod(i,7),:));
to
 ,'Color',cord(mod(i-1,7)+1,:));
or to be more general to
 ,'Color',cord(mod(i-1,size(cord,1))+1,:));

14 Dec 2005 H jr N

very useful

12 May 2006 nikhil santosh

This is just too neat!

Please login to add a comment or rating.
Updates
18 May 2004

Removed ugly spaces from description.

02 May 2005

Fixed a small bug (thanks Richard), and added another example on lorenz attractor.

Tag Activity for this File
Tag Applied By Date/Time
simulink Giampiero Campa 22 Oct 2008 07:19:49
multitrack Giampiero Campa 22 Oct 2008 07:19:49
3d Giampiero Campa 22 Oct 2008 07:19:49
2d Giampiero Campa 22 Oct 2008 07:19:49
lorenz Giampiero Campa 22 Oct 2008 07:19:49
attractor Giampiero Campa 22 Oct 2008 07:19:49
xy Giampiero Campa 22 Oct 2008 07:19:49
xyz Giampiero Campa 22 Oct 2008 07:19:49
graph Giampiero Campa 22 Oct 2008 07:19:49
scope Giampiero Campa 22 Oct 2008 07:19:49
graph Huy 23 Mar 2009 05:36:40
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com