Beruflich Dokumente
Kultur Dokumente
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
Columns 37 through 54
Columns 55 through 72
Columns 73 through 90
y=sin(t)
y =
Columns 1 through 18
Columns 19 through 36
Columns 37 through 54
Columns 55 through 72
Columns 73 through 90
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)