Code covered by the BSD License  

Highlights from
3DScope

5.0

5.0 | 6 ratings Rate this file 18 Downloads (last 30 days) File Size: 12.77 KB File ID: #4915
image thumbnail

3DScope

by Giampiero Campa

 

12 May 2004 (Updated 02 May 2005)

Multitrack 3D Simulink Scope.

| 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)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
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!

02 Mar 2010 Gönenç

Hi, I put the block on top of my aircraft model. After trimming the aircraft, trimming needs to be terminated. I use the following command bu it doesn't work with the 3d scope.

>> feval(model,[],[],[],'term');

??? Error using ==> feval
--> Error evaluating 'StopFcn' callback of XYZ multiscope block (mask) 'Model/Subsystem/XYZ Graph'. Index exceeds
matrix dimensions.

Error in ==> end_trim at 14
    feval(model,[],[],[],'term');

30 Sep 2011 Emanuele Ruffaldi

Really useful block. Thanks.

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

Contact us at files@mathworks.com