3d Plot of matrix

1 vue (au cours des 30 derniers jours)
Daniel Paton
Daniel Paton le 18 Avr 2019
Modifié(e) : Daniel Paton le 18 Avr 2019
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.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by