Using x,y,z data recorded with a Zygo Interferometer and the MetroPro software?
73 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
N/A
el 12 de Oct. de 2016
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.
Respuestas (1)
Tom W
el 24 de Oct. de 2016
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 comentario
Tom W
el 24 de Oct. de 2016
http://www.mathworks.com/matlabcentral/fileexchange/9519-color-coded-3d-scatterplot Props to Uli Theune & Ken Garrard
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!