Plotting a 2D matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 :
0 comentarios
Respuestas (1)
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?
0 comentarios
Ver también
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!