Plotting a vector field

3 ビュー (過去 30 日間)
Andre du Plessis
Andre du Plessis 2020 年 11 月 20 日
編集済み: Ameer Hamza 2020 年 11 月 20 日
I have a 44 x 44 x 88 array of values representing temperature in 3d dimensional space. How can I plot this to visualise it. Ive been told to use the slice command but I can't figure out how to put in the right parameters.
  1 件のコメント
KSSV
KSSV 2020 年 11 月 20 日

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 20 日
編集済み: Ameer Hamza 2020 年 11 月 20 日
In slice command, you need to specify the locations on x, y and z axis at which you want to plot the plane. For example
M; % 44 x 44 x 88 array
slice(M, [1 15 40 44], [4 20 40], [30 50 80])
In this line, the values are just an example. You can choose any value along that dimension such that it is less than the size of array.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by