You are on page 1of 2

X(t)=kg

Codigos

close all ;
clear all;
clc
y= dsolve('Dx= (75-3*x)/25','x(0)=5','t')

for t=0:5:100
ysalida= eval(y);
tsalida=t;
figure (1)
plot(tsalida,ysalida,'--o');
title('')
xlabel('tiempo')
ylabel('amplitud')
legend('sin*cos')
hold on;
grid on;
end

You might also like