MAt LAB homework problems need help !!

Discussion in 'Programmer's Corner' started by meghal, Mar 11, 2010.

  1. meghal

    Thread Starter New Member

    Mar 11, 2010
    2
    0
    1.
    A = [ 3 7 -4 12; -5 9 10 2; 6 13 8 11; 15 5 4 1]

    a. sort each ccolumn and store the result in an array B.
    b. Sort each row and store the result in an array C.
    c. Add each colume and store the result in an array D.
    d. Add each row and store the result in an array E.


    2.
    A= [ 64 32; 24 -16] B = [ 16 -4; 6 -2]

    Use MATLAB to :
    a. Find the result of A times B using the array product.
    b. Find the result of A divided by B using array right division.
    c. Find B raised to the third power element by element


    3.
    Use MATLAB to find the prducts AB and BA for the following matrices

    A = [ 11 5; -9 -4] B= [-7 -8; 6 2]
     
  2. guitarguy12387

    Active Member

    Apr 10, 2008
    359
    12
    Have you tried at all? Post your attempts at a solution... we won't just DO your homework for ya! You gotta learn it :)

    But i'll say, most of these problems can be done with a simple matlab command and/or 3 or 4 lines of code.

    Good luck!
     
  3. monkles

    New Member

    Aug 6, 2009
    9
    0
  4. meghal

    Thread Starter New Member

    Mar 11, 2010
    2
    0
    Well yea i did try it i jus wanted to know the answers to see if i was correct. sorry for that :) thanks tho
     
Loading...