Vous êtes sur la page 1sur 2

MATHEMATICAL SCRIPT

Model

x=0:.1:10;
y=sin(x);
plot(y)
xlabel('time(min)')
ylabel('y values')
title('sine function')

Exapmple 2

Delivetive and intergration

syms x
y=sin(x.^2)+x.^2+log(x);
diff(y)

ans =

int(y)
ans =

fplot([y diff(y) int(y)])


xlabel( 'samples')
ylabel('y values')
title('differetial and intergral functions')
legend('ro','+','-')