Using x,y,z data recorded with a Zygo Interferometer and the MetroPro software?
77 次查看(过去 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!