Sie sind auf Seite 1von 4

Ejercicio 1

3^32

ans =

1.8530e+15

ln(4)
Unrecognized function or variable 'ln'.

log(4)

ans =

1.3863

t=0:0.1:10

t =

Columns 1 through 18
0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000
0.7000 0.8000 0.9000 1.0000 1.1000 1.2000 1.3000 1.4000
1.5000 1.6000 1.7000

Columns 19 through 36

1.8000 1.9000 2.0000 2.1000 2.2000 2.3000 2.4000


2.5000 2.6000 2.7000 2.8000 2.9000 3.0000 3.1000 3.2000
3.3000 3.4000 3.5000

Columns 37 through 54

3.6000 3.7000 3.8000 3.9000 4.0000 4.1000 4.2000


4.3000 4.4000 4.5000 4.6000 4.7000 4.8000 4.9000 5.0000
5.1000 5.2000 5.3000

Columns 55 through 72

5.4000 5.5000 5.6000 5.7000 5.8000 5.9000 6.0000


6.1000 6.2000 6.3000 6.4000 6.5000 6.6000 6.7000 6.8000
6.9000 7.0000 7.1000

Columns 73 through 90

7.2000 7.3000 7.4000 7.5000 7.6000 7.7000 7.8000


7.9000 8.0000 8.1000 8.2000 8.3000 8.4000 8.5000 8.6000
8.7000 8.8000 8.9000

Columns 91 through 101

9.0000 9.1000 9.2000 9.3000 9.4000 9.5000 9.6000


9.7000 9.8000 9.9000 10.0000

y=sin(t)

y =

Columns 1 through 18

0 0.0998 0.1987 0.2955 0.3894 0.4794 0.5646


0.6442 0.7174 0.7833 0.8415 0.8912 0.9320 0.9636 0.9854
0.9975 0.9996 0.9917

Columns 19 through 36

0.9738 0.9463 0.9093 0.8632 0.8085 0.7457 0.6755


0.5985 0.5155 0.4274 0.3350 0.2392 0.1411 0.0416 -0.0584
-0.1577 -0.2555 -0.3508

Columns 37 through 54

-0.4425 -0.5298 -0.6119 -0.6878 -0.7568 -0.8183 -0.8716


-0.9162 -0.9516 -0.9775 -0.9937 -0.9999 -0.9962 -0.9825
-0.9589 -0.9258 -0.8835 -0.8323

Columns 55 through 72

-0.7728 -0.7055 -0.6313 -0.5507 -0.4646 -0.3739 -0.2794


-0.1822 -0.0831 0.0168 0.1165 0.2151 0.3115 0.4048
0.4941 0.5784 0.6570 0.7290

Columns 73 through 90

0.7937 0.8504 0.8987 0.9380 0.9679 0.9882 0.9985


0.9989 0.9894 0.9699 0.9407 0.9022 0.8546 0.7985 0.7344
0.6630 0.5849 0.5010

Columns 91 through 101

0.4121 0.3191 0.2229 0.1245 0.0248 -0.0752 -0.1743


-0.2718 -0.3665 -0.4575 -0.5440

plot(y)
grid on
hold on
x=cos(t)
figure(2)
x = -720:720; y = sind (x); z = cosd (x);
plot3 (x,y,z)
x = -10:0.5:10; y = -10:0.5:10;
[X,Y] = meshgrid (x,y); % crea matrices para hacer la malla
Z = sin (sqrt (X .^2 + Y .^2)) ./ sqrt (X .^ 2 + Y .^ 2 + 0.1);
mesh (X,Y,Z) % dibuja la ráfica surf (X,Y,Z)
M = [0 0 0; 1 0 0; 0 1 0; 0 0 1; 1 1 0]; % creamos una matriz de colores
colormap (M)

Das könnte Ihnen auch gefallen