3D-plot of circular elements inside a matrix
이전 댓글 표시
Hi all,
I want to use meshc command and draw some elements inside a matrix that the elements indexes make a circle. for example in matrix A , I want to draw just the elements greater than 0:
A=[ 0 0 2 0 0;
0 1 3 2 0
3 4 2 1 3
0 2 3 5 0
0 0 4 0 0];
I want to eliminate the elements that are zero and draw the other elements in 3D. by doing so, we can clearly see the X-Y plane contours in 3-D plot.
Any reply is really appreciated.
Thanks
댓글 수: 3
Sean de Wolski
2012년 5월 7일
Mehdi replies:
"Is there anybody here? Any suggestion?"
Sean de Wolski
2012년 5월 7일
What do you expect as a result? Okay, we do _something_ to the zero elements, I'm not clear on what. Then we do _something_ and magically have a 3-d shape/plot. This is not clear to me. Please explain the two somethings and the expected result.
Mehdi
2012년 5월 7일
채택된 답변
추가 답변 (1개)
Mehdi
2012년 5월 7일
0 개 추천
댓글 수: 3
Sean de Wolski
2012년 5월 7일
Filter it somehow. Perhaps conv2() would be your friend (you would want to do this before NaNing out the zeros)
Mehdi
2012년 5월 7일
Mehdi
2012년 5월 7일
카테고리
도움말 센터 및 File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!