Provide details and share your research But avoid Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
Not the answer youre looking for Browse other questions tagged matlab octave or ask your own question. Open Live Script Overlay Bar Graphs Overlay two bar graphs and specify the bar colors and widths. Matlab 3D Line How To Add AThen, it shows how to add a legend, display the grid lines, and specify the tick labels. ![]() What I would like to do is to show on my surface the intersection lines of horizontal planes parallel to xy plane with my surface. These parallel planes could be for example at z 210, z220, z230, z240 etc (intervals could be regular or not). This should at least get you started: figure surf(X,Y,Z) ssurf(X,Y,Z, EdgeColor, none ) hold on for k1 210:10:270 surf(X, Y, k1ones(size(Z)), FaceAlpha,0.5, EdgeColor,1 1 1 0.8) end hold off It simply loops, creating a horizontal plane of ones at each value of k1. If you want a larger plane, you will have to define new X and Y matrices for it. The Z matrix defining the plane would then be a ones matrix the same size as those matrices. What I want to draw is only the intersection lines of these planes with my surface (that is, to look like horizontal grid lines on my surface, which will follow the curve of the surface). By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |