필터 지우기
필터 지우기

reformulating the axis grid for a plot

조회 수: 2 (최근 30일)
Franco
Franco 2011년 6월 9일
Ok, so I have data for a temperature field in a 3d array such that temp(i,j,k) defines the temperature at the coordinates in the i, j, and k directions, but the problem is that the coordinate field is not linear. What i mean is that when i = 1, x = 0, when i = 2, x = .19, when i = 3, x = .76, so on and so fourth. Right now, when I want to take a slice of the data (which is 128x128x128), i can only take a slice in terms of the i value and the coordinate system is set up in terms of the i value, so the points are distributed from 1 to 128, but i need the distributed relative to the function that defines the coordinate axis. Anyone out there know how to do that?

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 6월 9일
doc meshgrid
doc ndgrid
?
  댓글 수: 2
Franco
Franco 2011년 6월 9일
tried it. I need a way to ammend the axis after it has been established.
Sean de Wolski
Sean de Wolski 2012년 3월 12일
set(the_axes_handle,'xdata',new_xdata)
same for y, z

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by