Plotting a 2D matrix

4 ビュー (過去 30 日間)
Sobit Singh
Sobit Singh 2018 年 6 月 28 日
回答済み: Ajey Pandey 2018 年 6 月 29 日
I need to plot a matrix M which is 247*30 in size. On the X axis I need to plot 1984:2016. On the Y Axis I need to plot the value corresponding to the 42 values. On the Z axis I need to plot the 1:247 value.
I tried using the plot3 function in a loop like this and I wouldnt get it right :

回答 (1 件)

Ajey Pandey
Ajey Pandey 2018 年 6 月 29 日
Plot3 is looking for a parameterized function. So for example, if you set a linspace as t, then the other two arguments for plot3 would be functions of t. So in your case, to use plot3, you would need to write equations for you values in terms of year.
What are you trying to do with your data, with regards to plotting?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by