matlab.docx - Vn tc tng i Va =[200*cos(45 200*sin(45 Vb...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Vận tốc tương đối Va = [200*cos(45), 200*sin(45)] Vb = [150,0] Vd = Va - Vb AB = sqrt(Vd(1)^2 + Vd(2)^2) Plot đồ thi x =[0:0.1:100] y = 9*x.^4 - 5*x.^3 + 3*x.^2 + 7 plot(x,y) nhân da thuc x = [0:0.1:100] a = [20,-7,5,10] b = [4,12,-3] %f = polyval(a,x)% %g = polyval(b,x)% y = conv(a,b) giai pt bậc y = roots([1,2,5,3]) tinh dien tich hinh quai di R = [1:0.01:32] L = (1600 - (0.5)*pi.*R.^2)./(2.*R) P = 30*(2.*L + 2.*R) + 40*pi.*R [x,k] = min(P) format bank disp(R(k)), disp(L(k)) plot do thi dung ham polyval x = [0:0.1:100] a = [9,-5,3,7] f = polyval(a,x) plot(x,f, '+' ) chia da thuc a = [3,-12,20] b = [1,-7,10] x = [0:0.001:7] y = polyval(a,x)./polyval(b,x) plot(x,y) giai toan dk x = [-20:1:20] for k = 1:length(x) if x(k) > 9 y(k) = 15*sqrt(4*x(k)) + 10 else if x(k) >= 0 y(k) = 10*x(k) + 10 else y(k) = 10 end end end plot(x,y) nếu trong muc if có giấu && thi y sẽ có dấu == tinh giai thừa n = input( 'text' ) m = 1 for k = 1:n m = m*k end plot do thi dat ten x = [-100:1:100] y = 400*x.^2 -10 plot(x,y) title ( 'this is a plot' ) xlabel(‘d’) số min max x = input( 'so 1 :' ) y = input( 'so 2 :' ) z = input( 'so 3 :' ) max = x min = x if max < y max = y end if max < z max = z end disp(max) if min > y min = y end if min > z min = z end disp(min) plot do thi x= [-2:0.1:6] for k = 1:length(x) if x(k)< -1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern