3d Plot of matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to plot each row in a matrix as a single graph with each graph being ploted on the z - axis. So for example the first row will be x vs y with x being the number of elements in that row and y being the data corresponding to each element in that row. That would be the first graph then I would do the second row with that graph being ploted on the same 3d graph but say at z = 2 then the next row at z = 3 and so on. If I have a RxC matrix I will have R amount of graphs with each graph being plotted on the z axis at its corresponding row index.
This is what I have so far but it keeps coming back that the vectors need to match even though vector length of x and y are equal.
Any help is greatly appreciated.
hold on
for i = 1:50
plot3((1:N)/N,output(i,:),i);
end
The above would be plotting 50 graphs but I should be able to change that number to as many rows as the matrix.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D 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!