Transforming axis. How to create a customized axis.
이전 댓글 표시
I have x,y,z coordinates from a tissue and corresponding them, a signal value. The tissue is curved, so when I plot data in x-y plane, I can see the graph as shown. I want to plot 2D graph such that my x-axis is the midline of tissue(black line) and y-axis is my signal value.
Thanks!

댓글 수: 8
Jan
2019년 1월 22일
How is the black line defined? In which format are the 3D data availble?
Chandel Singh
2019년 1월 23일
Chandel Singh
2019년 1월 23일
Jan
2019년 1월 23일
I still do not know, what you want to achieve. What should happen with the rest of the image, if the black line is the X-axis?
Chandel Singh
2019년 1월 31일
편집: Chandel Singh
2019년 1월 31일
Jan
2019년 1월 31일
"Axis" means a straight line. Therefore we still have to guess, which line you mean.
To 1) It depends on how you draw in the image. But after drawing, the coordinates should be available directly.
To 2) It depends. If you mean a manually drawn line, this will not be straight necessarily. Then there is no unique transformation to a line. You could e.g. draw a circle, or a curve, which is intersecting itself. This should show immediately, that a unique definition of such a transformation is not possible. So please explain, what you want to achieve.
Chandel Singh
2019년 2월 10일
편집: Chandel Singh
2019년 2월 10일
Jan
2019년 2월 11일
@Chandel Singh: So start with finding a function to fit the hand drawn curve. This is not trivial and there is no unique solution. What about a cubic spline or are there any mathematical restrictions to the wanted function?
Afterwards a problem remains: in the parts, where the function is konvex, the relation is not necessarily unqiue. Example: If the fitted line is a circle, you cannot find a unique correlation between the curve and the center. This means, that there is no guarantee that there is a unique solution to you problem.
But you can find some solutions. Currently this problem does not concern Matlab, so you have to find mathematical solutions any where elese at first, before it matchs the topic of this forum.
답변 (2개)
jahanzaib ahmad
2019년 1월 22일
0 개 추천
minus some value from x coordinates
like if u have x,y data in A .
A =[A(:,1)-1321 A(:,2)];
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

