Different size plotting matrices

Hi all, I want to ask how to plot 3D different size vectors?. Actually, there is 2 matrices (x,y) have the same dim. and the third has [ 1 : 2 ] <- this is time vector (delay matrix) I used mesh grid but it doesn’t work because of error in Z axis.
thank you for help.

 採用された回答

Image Analyst
Image Analyst 2016 年 2 月 28 日

0 投票

We're not sure how or why you're using meshgrid().
Somehow get your various matrices and vectors into single column vectors representing x, y, and z. Then call plot3():
plot3(x, y, z, 'b*-', 'LineWidth', 2);
It will put a * at each data point in a 3-D plot and connect them with lines.

4 件のコメント

Lilya
Lilya 2016 年 2 月 28 日
thank you
Lilya
Lilya 2016 年 3 月 2 日
hi Mr/Mrs Analyst, how can plot the previous data with each delay separately? I mean x,y with 1, x,y with 2? like the attached figure
Image Analyst
Image Analyst 2016 年 3 月 2 日
That's a surface, not a 3-D plot of points. So you get a 2D array for each one where the array values are the "height" of the surface above the plane, and then call surf().
Lilya
Lilya 2016 年 3 月 5 日
Got it Thank you

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2016 年 2 月 28 日

コメント済み:

2016 年 3 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by