Borrar filtros
Borrar filtros

Plotting a 2D matrix

3 visualizaciones (últimos 30 días)
Sobit Singh
Sobit Singh el 28 de Jun. de 2018
Respondida: Ajey Pandey el 29 de Jun. de 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 :

Respuestas (1)

Ajey Pandey
Ajey Pandey el 29 de Jun. de 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?

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by