Como gráficar funciones trigonométricas en Matlab.



CODE SCRIPT

figure(1)
x = 0:pi/100:2*pi;
y = sin(x);
figure(1)
x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y);
xlabel('x');
ylabel('sin(x)');
title('sin');
legend('seno');
grid on;

figure(2)
x = 0:pi/100:2*pi;
y = cos(x);
plot(x,y);
xlabel('x');
ylabel('sin(x)');
title('Funcion coseno');
legend('cos');

figure(3)

x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y);

hold on

y2 = cos(x);
plot(x,y2);

title('Funcion coseno y seno');
legend('sin', 'cos');

hold off

figure(4)
subplot(2,1,1);
x = 0:pi/100:4*pi;
y = sin(x);
plot(x,y);
xlabel('x');
ylabel('sin(x)');
title('Función sin');
legend('sin');

subplot(2,1,2);
x2 = 0:pi/100:4*pi;
y2 = cos(x2);
plot(x2,y2);
xlabel('x');
ylabel('sin(x)');
title('Funcion coseno');
legend('cos');

****************************************************************************
COMO INSTALAR MATLAB 2020



Comments

Popular posts from this blog

IPVT GRATIS MEDIANTE VLC CON LISTA-2 M3U

Diseño Antena Logaritmica Microstrip de 10-20 GHz en Ansoft Dessigner.

VoIP en Cisco Packet Tracer con dial peer.