3d Plot of matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!