problem with surface or mesh plotting of 3D data matrices with different rows length?

1 回表示 (過去 30 日間)
Abdulaziz Abutunis
Abdulaziz Abutunis 2016 年 10 月 16 日
コメント済み: Walter Roberson 2016 年 10 月 16 日
Hello everyone, I wrote a code that will separate and arrange 3D data so that each component of x, y and z is a matrix. However, each matrix has rows that are not of the same length ( the short arrays was filled with NaN (or can be filled with zeros).
I want to create surface or mesh plot but an error says "Data dimensions must agree." The data for specific row has the same length but as i mentioned the length differs from row to another.
I wonder if I can use plot3 and cover with surface something like lofted surface in CAD.
Best Regards Aziz
  2 件のコメント
KSSV
KSSV 2016 年 10 月 16 日
For ploting you must have x,y and z all of Dame dimensions. How you have different dimensions? I think you have not separated them properly.
Are sizes of x and y same?
Walter Roberson
Walter Roberson 2016 年 10 月 16 日
If the arrays are nan padded then you should not be having difficulty with surf()

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by