To plot a rabbit in Matlab, you can use the following code:
main.m153 chars8 lines
This code creates a sphere, scales it down and positions it to resemble a rabbit. The axis equal
command ensures that the scales of the x, y and z coordinates are the same, and the view
command sets the angle from which the plot is viewed. The colormap
command sets the color map of the plot to grayscale, and the light
command adds a light source to the plot. Finally, the material
command sets the material properties of the plot object to 'shiny'.
Once this code is executed in Matlab, you will see a 3D plot of a rabbit.
gistlibby LogSnag