Professional Documents
Culture Documents
>> %Graficas
>> %Juan Pablo Zevallos
>> date
ans =
'20-Jul-2021'
>> x=[1:10]
x =
1 2 3 4 5 6 7 8 9 10
y =
y =
>> plot(x,y)
>> X= 0:pi/100:2*pi;
>> Y=cos(X)*2;
>> Y2=cos(X)*3;
>> Y3=cos(X)*4;
>> Y4=cos(X)*5;
>> figure(2)
>> plot(X,Y,X,Y2,X,Y3,X,Y4)
Warning: Error occurred while executing the listener callback for event WindowMousePress
defined for class
matlab.ui.Figure:
Invalid or deleted object.
MATLAB Command Window Page 2
Error in matlab.graphics.illustration.Legend/enableAxesDirtyListeners
Error in matlab.graphics.shape.internal.AxesLayoutManager/enableAxesDirtyListeners
Error in matlab.graphics.interaction.internal.toggleAxesLayoutManager
Error in matlab.graphics.interaction.uiaxes.PanBase/start
Error in matlab.graphics.interaction.uiaxes.Drag/start_drag
Error in matlab.graphics.interaction.uiaxes.Drag/validate_drag
Error in matlab.graphics.interaction.uiaxes.Drag>@(varargin)hObj.validate_drag(varargin
{:})
>> y=[5 6 10 12 14 15 27 33 35 55]
y =
5 6 10 12 14 15 27 33 35 55
>> figura(3)
Undefined function or variable 'figura'.
>> x=0:pi/20:2*pi;
>> plot(x,sin(x))
>> subplot(3,1,2)
>> plot(x,sin(2*x))
>> subplot(3,1,2)
>> subplot(3,1,3)
>> y
y =
5 6 10 12 14 15 27 33 35 55
>> x
x =
MATLAB Command Window Page 3
Columns 1 through 12
Columns 13 through 24
Columns 25 through 36
Columns 37 through 41
>> x=1:10
x =
1 2 3 4 5 6 7 8 9 10
>> loglog(x,y)
>> figura(5)
Undefined function or variable 'figura'.
y1 =
MATLAB Command Window Page 4
Columns 1 through 12
Columns 13 through 24
Columns 25 through 36
Columns 37 through 41
>> y1=sin(x);
>> y2=exp(x);
>> plot(x,y1,x,y2)
>> subplot(1,2,2)
>> plotyy(x,y1,x,y2)
>>