Plotting a 2D matrix

1 次查看(过去 30 天)
Sobit Singh
Sobit Singh 2018-6-28
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 CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by