Adding time vector to 3D surf plot
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
I have generated a 3D surf plot with force (y) against car-number (x) and time (actually row number of the matrix which relates to time) (z).
The z-axis is plotting the row number of the from the matrix which contained the data for x and y. From my ODE I have a time vector (T) of suitable size which has the times in it relating to the row numbers.
Currently it (z) is 0:10000 and I have a vector T size(10000,1). How to I replace the z-axis with the time from that vector (T)?
Do you require more information to understand what I am saying?
댓글 수: 0
답변 (1개)
  Fangjun Jiang
      
      
 2011년 9월 6일
        set(gca,'zticklabel',T)
댓글 수: 2
  Fangjun Jiang
      
      
 2011년 9월 7일
				I don't have your data so just give this example.
a=membrane;
figure(1);surf(a);
figure(2);surf(a);set(gca,'zticklabel',100:100:400);
참고 항목
카테고리
				Help Center 및 File Exchange에서 Surfaces, Volumes, and Polygons에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

