MATLAB: How to get coordinates values X, Y, Z from the Meshed file in matlab

to extract coordinates from meshed model

I have a meshed bone model(stl file). I have to extract data points (X,Y, Z coordinates) from the model which has 4000 nodes.
Can anyone suggest some idea to proceed?

Best Answer

Something like this
TR = stlread('tristltext.stl');
x = TR.Points(:,1);
y = TR.Points(:,2);
z = TR.Points(:,3);