ve 1 dt nhieu he truc

function Ve_MotDoThiNhieuHeTruc()

clc;

x = [-5:0.5:5];

y = 2*x.^2 + 3*x + 4;

t = sin(x);

z = (sin(x)./cos(x));

q = (cos(x)./sin(x));

subplot (2,2,1), plot(x,y,'r')

title ('Do thi ham so y = 2x^2 + 3x + 4')

xlabel ('Bien x')

ylabel ('Ham y')

subplot (2,2,2), plot(x,t,'b')

title ('Do thi ham so t = sinx')

xlabel ('Bien x')

ylabel ('Ham y')

subplot (2,2,3), plot(x,z,'g')

title ('Do thi ham so z = sinx/cosx')

xlabel ('Bien x')

ylabel ('Ham y')

subplot (2,2,4), plot(x,q,'m')

title ('Do thi ham so q = cosx/sinx')

xlabel ('Bien x')

ylabel ('Ham y')

box off

Bạn đang đọc truyện trên: TruyenTop.Vip

Tags: