How to draw the lines or edges of a cone in matlab -
i trying draw lines or edges of cone using plot3 in matlab. please? not need surface. need edges only. can patch on it. useful link. need circle @ bottom: https://patentimages.storage.googleapis.com/us8514658b2/us08514658-20130820-d00021.png
few horizontal lines fine. no tilted line need patch inside.
i think want. of answer directly taken above answer @rtl.
numrings = 2; numpointsaround = 100; [x,y,z] = cylinder(linspace(-1,0,numrings),numpointsaround); plot3(y.',x.',z.','-k') hold on;line([-0.5878;0], [0.809;0],[0;1]); hold on;line([0.9511;0], [-0.309;0],[0;1]); axis square
Comments
Post a Comment