vanhiepit
23-12-2010, 10:32 PM
{ y1=4cosx(10+sinbx)
{y2=ax+b
viethung_9x
23-12-2010, 10:59 PM
cái này dùng hàm plot là đc,
bạn xem slide
Only the registered members can see the link
tại học lâu rùi nên mình cũng quên
kid_bander
26-12-2010, 11:12 AM
{ y1=4cosx(10+sinbx)
{y2=ax+b
a=str2double(get(handles.a,'string')); %Nhap a cua ham y2
b=str2double(get(handles.b,'string')); %Nhap b cua ham y2
min=str2double(get(handles.min,'string')); %nhap min
max=str2double(get(handles.max,'string')); %nhap max
axes(handles.dt2); %xuat do thi vao dt2
x=min:pi/100:max;
y1=4*cos(x) .*(10*sin(b*x));
y2=a*x +b;
plot(x,y1,x,y2);
title('..................I'); %Dat ten cho do thi
xlabel('x'); %Dat ten cho truc x
ylabel('y'); %Dat ten cho truc y
Bạn về xem thử có chạy ko chứ mình chưa test thử.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.