Using x,y,z data recorded with a Zygo Interferometer and the MetroPro software?
조회 수: 74 (최근 30일)
이전 댓글 표시
I have a load of x y z data in a .txt file that looks like this: 0 0 No 1 0 No 2 0 No 3 0 -5.3056723 4 0 -25.398468 5 0 No 6 0 -24.163848 7 0 -24.322821 8 0 -24.51721 9 0 -23.890468 10 0 -24.417893 11 0 -23.548125 12 0 -24.672443 13 0 -24.680245 14 0 -24.704755
I have delimited the columns with spaces, so the "No" is from "No Data" but the "Data" column is not used. I then set the data to import replacing all unimportable cells, e.g. "No" with 0. The data represents a scan of a surface. I'd like to be able to view that surface in 3D within Matlab. As such a color code based on height would be useful. I've attempted using surf and plot3 but am not getting the results I want. The next more advanced question is how would I be able to take arbitrary 2D "slices" of the surface, to get a plot of height along the direction specified? Any help would be greatly appreciated, Cheers, Alex
댓글 수: 1
N/A
2016년 10월 12일
Hi Alex, have you found a solution to this yet? I am using datastore to read the data but its not making much sense at the moment.
답변 (1개)
Tom W
2016년 10월 24일
For a question 3 yrs old...it hurts to answer. Maybe it will help people that just discovered the same problem. Use "plot3k". Search the central user community for the function. It works great at 3D color coded plotting, and you might be able to use it for the slicing as well.
댓글 수: 1
Tom W
2016년 10월 24일
http://www.mathworks.com/matlabcentral/fileexchange/9519-color-coded-3d-scatterplot Props to Uli Theune & Ken Garrard
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!