How to plot a 3D plot.

2 ビュー (過去 30 日間)
Bharath
Bharath 2015 年 2 月 15 日
コメント済み: Image Analyst 2015 年 2 月 16 日
I've 2 matrices X and Y of size 8192x28. Now I want to plot a 3D plot (Waterfall graph) which would like something like this
I want to plot first line with 1st column Vs 1st column Y and then the next. In the similar way I want to do for 28 column to form a overlapping graph.
I tried using plot3 command but I get errors. Can someone give me a direction on this. Thanks in advance.

採用された回答

Image Analyst
Image Analyst 2015 年 2 月 15 日
I know you must have already tried this, but since you didn't mention it explicitly I thought I'd ask. What happened when you tried the waterfall() function?
  2 件のコメント
Bharath
Bharath 2015 年 2 月 15 日
編集済み: Bharath 2015 年 2 月 15 日
I tried using waterfall command
Axisf = sort(reshape([fAxis1,fAxis2], 1, []))';
Axisf = repmat(Axisf,1,28); % making a 8192x28 matrix for frequency
Amplitude = reshape([FR,FA],28,[])'; % already a 8192x28 matrix amplitude
%Define Time Axis so that I can use it as another axis
TimeAxis = (1:8192)';
TimeAxis = repmat(TimeAxis,1,28);
waterfall( Axisf,TimeAxis,Amplitude);
As you can see in the figure, it's completly something else.
Image Analyst
Image Analyst 2015 年 2 月 16 日
Attach your data file if you want us to try anything.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by