comp.soft-sys.matlab - The MathWorks calculation and visualization package.
I've got coordinates(3000 times x, y and z) of a bonepiece. I want to make it a solid bonepiece and I thought of connecting the coordinates(three at the time) wich are close together with trisurf or tetramesh. somehow, matlab doesnt find the coordinates which are closest to eachother. I tried to solve it with griddata but that doesnt work because it has a problem with seeing wich points are the top of the bone and which are the bottompoints of the bone because it searches for coordinates in x and y and it forgets z. T = csvread('tal0r.csv'); x = T(2325:3164,1); y = T(2325:3164,2); z = T(2325:3164,3); figure [XI,YI] = meshgrid(-22:1:23,-32:1:32); ZI = griddata(x,y,z,XI,YI); mesh(XI,YI,ZI), hold on tri = delaunay(XI,YI); trisurf(tri,XI,YI,ZI,'FaceColor','red') in 'FaceColor','green','EdgeColor','black' hold off please help me!
poly2mask(XC,YC,20,20); fill(XC,YC,'b'); these should give me an exactly overlapping blue and white region, but when executed there are few white pixels appearing. Could you please explain?
How do i draw a filled polygon in 3d given 3 corners? a triangle for example given the tree corners
Hello, I am new to MATLAB (esp. graphics in MATLAB), and I am drawing a to-scale picture of a rocket in a building. I read in the dimensions from a text file, then draw the many parts of the rocket and the building by using the "fill" command many times. However, I initially draw the rocket facing upwards, and I would like to change its orientation/rotation with respect to the building. Can someone tell me how can I do that? I have tried drawing the building on one axis, and then drawing the rocket on a new, hidden axis and changing the view and 'Position' of this new axis, but I cannot get the rocket in the exact position I would like. I am sure there is an easier way but I have read through help and cannot find it! (Maybe grouping through hggroup or hgtransform? I am not sure how to use these.) Thank you in advance, Linda