TAGS

版本 1.0.0.0 (1.4 KB) 作者: Jim Hedfors
Uses PEEKPLOT to show attributes of 2D data via mouseclick
707.0 次下载
更新时间 2006/6/29

无许可证

out = TAGS(X,Y,attr1,attr2,attr3,...) returns a 2D plot of X, Y, and enables you to peek at attributed data attr1, attr2,... via mouseklick.

TAGS only extends the functionality of PEEKPLOT to show any 2D data with additional attributes instead of just X and Y values. This is particularly useful for geographic information (or you name it...) where a coordinate pair may be associated with various parameters.

For example, say you have water samples from a number of wells with known geographic coordinates and associated data lined upp in a table:

X Y Z Depth pH Na
------------------------------------------------
1487015 6238640 101 1.7 5.5 0.22
1490308 6235131 99 5.6 5.7 0.12
1490370 6237609 29 3.2 5.3 0.24
1489339 6236778 122 5.4 8.0 0.44
1487292 6235131 78 7.3 2.3 0.21

then to use peeks:
x=[1487015 1490308 1490370 1489339 1487292];
y=[6238640 6235131 6237609 6236778 6235131];
z=[101 99 29 122 78];
pH=[5.5 5.7 5.3 8.0 2.3];
Na=[0.22 0.12 0.24 0.44 0.21];
Depth = [1.7 5.6 3.2 5.4 7.3];

WELLS=TAGS(x,y,z,pH,Na,N,Depth,Quality);

Use the mouse (left mouse button hold) near a data point.

引用格式

Jim Hedfors (2024). TAGS (https://www.mathworks.com/matlabcentral/fileexchange/11588-tags), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polygons 的更多信息
致谢

参考作品: Peekplot

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0