Chào các bạn! Vì nhiều lý do từ nay Truyen2U chính thức đổi tên là Truyen247.Pro. Mong các bạn tiếp tục ủng hộ truy cập tên miền mới này nhé! Mãi yêu... ♥

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: Truyen247.Pro

Tags: