graph_and_table
by Michael Robbins
22 May 2003
(Updated 12 Jun 2003)
No BSD License
Creates a graph and a data table below it. The table is put in an activex control using the column.
Download Now
|
Watch this File
|
| File Information |
| Description |
Creates a graph and a data table below it.
the table is put in an activex control using
the column labels colhead
This function is meant to be an example for CSSM and not
to be used as is.
It is meant to demonstrate ActiveX grid usage and works with
MSFLEXGRID (which comes with Windows and doesn't allow editing)
and SIMPLE GRID (which is available for free at
http://adfsoft.hypermart.net/sgrid/ ).
Use 'SGRID' for the whichgrid parameter to use
simple grid, but you must first you must download it from the above
website and register it. To register, find sgrid.ocx by clicking on
the windows start button and selecting "find". Change your directory
to its directory and type "regsvr32 sgrid.ocx"
___________________ ____________________
| /\ | | /\ | X Y ##
| /\ / \/\ /| | || || 1 1.0 ##
| / \/ \_/\/ | ||\ ||/\|| 2 1.5 ##
|_/_________________| || | | ||| 3 2.0 ##
| X Y || || |/ | 4 1.6 ##
| 1 1.0 || || | 5 2.0 ||
| 2 1.5 ## | | 6 2.5 ||
|__3__2.0__________|| |_________|__7__2.3_||
horizontal split vertical split
INPUTS DESCRIPTION DEFAULT VALUE
x x data [1:10]
y y data rand(size(x));
colhead table header {'X','Y'};
vertorhoriz vert or horiz split 0 %(vertical)
figuretitle figure title 'graph_and_table'
whichgrid MSFlexGrid or Simple Grid 'MSFlexGrid'
OUTPUTS:
h.fig handle to figure
h.graph handle to graph
h.line handle to data line
h.grid handle to grid object
USAGE:
x=1:10;
y=rand(size(x));
colhead={'X','Y'};
vertorhoriz=0; % vertical
figuretitle='graph_and_table';
h=graph_and_table(x,y,colhead,vertorhoriz,figuretitle);
vertorhoriz=1; % horizontal
h=graph_and_table(x,y,colhead,vertorhoriz,figuretitle);
h=graph_and_table(x,y,colhead,vertorhoriz,figuretitle,'SGRID');
IT'S NOT FANCY, BUT IT WORKS |
| Acknowledgements |
This submission has inspired the following:
Keydown and Keypressed Events Demo
|
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 30 Dec 2003 |
John Robinson
|
|
|
| 25 Oct 2004 |
Xenya Petrova
|
|
|
| 11 Feb 2005 |
Raúl Herrrera Avelar
|
|
|
| 15 Apr 2005 |
Eric Shain
|
|
|
| 12 Aug 2005 |
trash zone
|
|
|
| 08 Feb 2006 |
HABIB REZA
|
|
|
| 08 Jun 2006 |
zara laoure
|
|
|
| 09 Feb 2007 |
said lahyani
|
|
|
| 25 Feb 2007 |
WALID ALI
|
|
|
| 15 Dec 2007 |
Teguh Purnama Sidiq
|
|
|
| 09 Feb 2009 |
Yingyong Chen
|
|
|
| 09 Feb 2009 |
Yingyong Chen
|
|
|
| Updates |
| 12 Jun 2003 |
Now can use MSFLEXGRID and SimpleGrid. SimpleGrid allows editing and works on some machines that cannot use MSFLEXGRID. |
|
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