>> figure
>> x = 0:0.1:2*pi;
>> y = sin(x);
>> plot(x, y);Miscelaneous commands:
>> close % Close the active graphics window
>> close all % Close the graphics window
>> clf % Clear the window from the graph
>> hold on % Keep the line in the previous display
>> hold off % Lose the line in the previous display
>> grid % Toggle for grid
>> cla % Clear axis
>> box % Toggle box>> rotate3d % Make the graph so can moving like a 3D objects
No comments:
Post a Comment