How do I plot a 3-d matrix.( error with surf)

1 回表示 (過去 30 日間)
savitha muthanna
savitha muthanna 2021 年 4 月 20 日
I have a 321x60x120 matrix. The matrix has positive and negative float values. I would like to plot it. I tried surf. I get an error saying : "Error using matlab.graphics.chart.primitive.Surface
Value must be a scalar, vector or array of numeric type.". Values are all numeric. What could be wrong?
Is there any other plotting function, that would be recommended. The values are positions and momentums of a 2-d system, that evolve over time. time is the first dimension. The first 60 in the 3rd dimension are positions and the next 60 are momentum of this 2-d system. Ideally, what I want to do, is plot, for each iteration, a 3-d plot for each set of 60 rows and 60 columns of position and then a 3-d plot for each set of 60 rows and 60 positions of momentum, and show the evolution over time.
  3 件のコメント
savitha muthanna
savitha muthanna 2021 年 4 月 20 日
編集済み: savitha muthanna 2021 年 4 月 20 日
isosurface plots isosurface data from volume data - is it equivalent to surf? And what does the error mean?
Rafael Hernandez-Walls
Rafael Hernandez-Walls 2021 年 4 月 20 日
doc slice

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeScalar Volume Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by