Reshaping X, Y, Z Data

22 ビュー (過去 30 日間)
Mario
Mario 2014 年 7 月 28 日
コメント済み: Mario 2014 年 7 月 28 日
Hi,
I plotted a surface using q = surf(X_New,Y_New,Z_New_2) where X_New and Y_New are both 1x288. Z_New_2 is 288X288. I want to reshape each X_New,Y_New and Z_New_2 into n-by-1 arrays. I'm running into a roadblock with my limited knowledge of Matlab so any help or feedback would be appreciated.
Regards,
Mario

採用された回答

David Young
David Young 2014 年 7 月 28 日
X_New = X_New(:);
Y_New = Y_New(:);
Z_New_2 = Z_New_2(:);
does what you asked - that is, it reshapes each of the arrays into an n-by-1 array. Is that what you need?
  1 件のコメント
Mario
Mario 2014 年 7 月 28 日
Yes, thank you very much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by