graph_and_table_

버전 1.0.0.0 (2.18 KB) 작성자: Michael Robbins
Creates a graph and a data table below it. The table is put in an activex control using the column.
다운로드 수: 4.6K
업데이트 날짜: 2005/2/11

라이선스 없음

Creates a graph and a data table below it. the table is put in an activex control using the column labels colhead

NOTE: TO SEE AN EXAMPLE OF HOW TO USE THE MICROSOFT SPREADSHEET OBJECT, WHICH ALLOWS INPUTS AS WELL AS CALCULATIONS, SEE MY EXAMPLE CALLED "SPREADSHEET.M" WHICH IS AVAILABLE ON THE MATHWORKS FILE EXCHANGE:
http://www.mathworks.com/matlabcentral/fileexchange

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');

See also: SPREADSHEET on the MATLAB File Exchange

IT'S NOT FANCY, BUT IT WORKS

인용 양식

Michael Robbins (2024). graph_and_table_ (https://www.mathworks.com/matlabcentral/fileexchange/6888-graph_and_table_), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 ActiveX에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0