GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Wednesday, December 22, 2010

Basic Graphics In Matlab

To create a graphics, type:

>> 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
            
Share/Bookmark

No comments:

Post a Comment