You are on page 1of 1

Rumus Matlab

%Input nilai m, c, k
m = 2;
c = 1;
k=0;
%looping dengan nilai c= 1, 0.5 dan 0
while c>=0;
x = linspace(-5, 5, 100);
b =k + i.*x*c- m.*x.*x ;
y = 1./b ;

plot (x,abs(y));
grid on;
hold on;

c=c-0.5;
end

Grafik Matlab

You might also like