show & scroll - Visualize arbitrary N-dimensional arrays

版本 1.0 (30.1 KB) 作者: Vladimir Golkov
Visualization functions for 3D, 4D, 5D and arbitrary N-D arrays
455.0 次下载
更新时间 2016/7/1

查看许可证

Powerful visualization for numerical arrays of arbitrary dimensionality. Data can be 3D, 4D, 5D or arbitrary N-dimensional arrays.
Dimensions 1 and 2 are arranged as in images, dimensions 3 and 4 can be optionally tiled (see figure and see examples below), all trailing dimensions can be scrolled through using the mouse wheel and the keyboard (e.g. +/- keys for dimension 5, "a"/"q" keys for dimension 6, "s"/"w" keys for dimension 7 etc.)

Additional functionality:
* Several figure windows can be switched between using arrow keys
* Array coordinates and values can be explored using the mouse cursor
* Color axis scaling can be controlled using Shift+Mousewheel, Ctrl+Mousewheel, Ctrl+Shift+Mousewheel, Alt+Mousewheel
* Complex-valued arrays are supported (requires FileExchange submission 20292 "hsl2rgb and rgb2hsl conversion")

Examples:

% 5-D array of size 10x10x10x10x10
A=randn([10,10,10,10,10]);

show(A) % visualize using 4-D tiles
show(A,'3d') % visualize using 3-D tiles
scroll(A) % visualize using 2-D tiles

% complex-valued array
% (requires FileExchange submission 20292 "hsl2rgb and rgb2hsl conversion")
C=randn([10,10,10,10,10]).*exp(2*pi*1i*rand([10,10,10,10,10]));

show(C) % encode magnitude as brightness and complex phase as color hue
showm(C) % show magnitude only
show(C,0) % show magnitude only
show(C,1) % encode complex phase as color hue
show(C,2) % encode magnitude as colormap and phase as brightness
show(C,3) % phase only as color hue
show(C,4) % phase only as brightness

引用格式

Vladimir Golkov (2024). show & scroll - Visualize arbitrary N-dimensional arrays (https://www.mathworks.com/matlabcentral/fileexchange/52374-show-scroll-visualize-arbitrary-n-dimensional-arrays), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

Added image.
Removed external code from zip file.

1.0

Reformatted description.
Reformatted description.
included Alt+Mousewheel, Shift+Mousewheel, Ctrl+Mousewheel, Ctrl+Shift+Mousewheel
Reformatted description.