Image3

A simple function for displaying 3-d arrays similar to how image() can be used for 2-d arrays.

現在この提出コンテンツをフォロー中です。

I use image() a lot for quickly getting an overview of what a 2-d array contains. I have searched through the Volume visualization guides without finding anything similar for 3-d arrays, so I have made one myself.

The approach is very simple: make a "box" out of 6 patches centered at each datapoint, and multiply each walls opacity by the corresponding array elements numeric value.

Caveats:
1. As the number of elements grows, the memory usage and plotting system cpu usage quickly gets too large
2. This is a crude approximation of "voxels", but the amount of blocked light is proportional to the number of wall transitions, not the real distance.

引用

Knut (2026). Image3 (https://jp.mathworks.com/matlabcentral/fileexchange/30721-image3), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: pcolor3

カテゴリ

Help Center および MATLAB AnswersImages についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0