Wednesday, April 10, 2013

Contoh plot transformasi



clc;
figure;
line([-10 10], [0 0 ]) % garis horizontal
line([0 0], [-10, 10]) % garis vertikal
hold on;
x = linspace(-10,10, 1000);
omega = sqrt(1+x.^2);
plot(x, omega, 'coloR', 'G');
hold on;
line([-10,10], [-4,4],'Color', 'r');
line([-4,4], [-10,10], 'CoLoR', 'R');
view raw ngajar_plot.m hosted with ❤ by GitHub