Plotting a 2D matrix

3 visualizzazioni (ultimi 30 giorni)
Sobit Singh
Sobit Singh il 28 Giu 2018
Risposto: Ajey Pandey il 29 Giu 2018
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 :

Risposte (1)

Ajey Pandey
Ajey Pandey il 29 Giu 2018
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?

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by