mesh along a plane for a 3D vector

I have a 3D matrix A with dimensions 64x64x301 (x,y,z (say)). Now I can plot the 3D version along the z plane by using mesh(A(:,:,1)). However, I am unable to do the same along x and y planes. It gives the error "Z must be a matrix, not scalar or vector". Please help!

 採用された回答

José-Luis
José-Luis 2014 年 1 月 15 日
編集済み: José-Luis 2014 年 1 月 15 日

0 投票

mesh(squeeze(1,:,:))
Please accept an answer if it helps you.

1 件のコメント

Arindam
Arindam 2014 年 1 月 15 日
Thanks! It works!

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2014 年 1 月 15 日

コメント済み:

2014 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by