Results 1 to 3 of 3

Math Help - Matlab ( Matrix )

  1. #1
    Newbie
    Joined
    Oct 2008
    Posts
    13

    Matlab ( Matrix )

    Hello
    i have 3 variables w,r,d as shown in the attached file (number 1)
    i tried to put the vaules of all variables in a single Matrix (y) as shown in the attached file (number 2) but i could not
    my result was like this
    y= w1 r1 d1
    y= w2 r2 d2
    y= w3 r3 d3

    my goal is to have a matrix (y) as shown in the attached file (number 3) as a form of
    y=
    w1 r1 d1
    w2 r2 d2
    w3 r3 d3
    then find the value of y(2,2) which is r2 =0.5000 + 0.8660i

    the code of number (1) is:

    n=2;
    for k=0:n
    w=exp((2*pi*k*j)/(n+1))
    r=w+1
    d=r/w
    end

    i need your help
    thank you
    Attached Thumbnails Attached Thumbnails Matlab ( Matrix )-matlab-help1.jpg  
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Zamorano View Post
    Hello
    i have 3 variables w,r,d as shown in the attached file (number 1)
    i tried to put the vaules of all variables in a single Matrix (y) as shown in the attached file (number 2) but i could not
    my result was like this
    y= w1 r1 d1
    y= w2 r2 d2
    y= w3 r3 d3

    my goal is to have a matrix (y) as shown in the attached file (number 3) as a form of
    y=
    w1 r1 d1
    w2 r2 d2
    w3 r3 d3
    then find the value of y(2,2) which is r2 =0.5000 + 0.8660i

    the code of number (1) is:

    n=2;
    for k=0:n
    w=exp((2*pi*k*j)/(n+1))
    r=w+1
    d=r/w
    end

    i need your help
    thank you
    Code:
    n=2;
    xx=[];
    for k=0:n
     w=exp((2*pi*k*j)/(n+1));
     r=w+1;
     d=r/w;
      xx=[xx;[w,r,d]];
    end
     
    xx
    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Oct 2008
    Posts
    13
    thank you very much CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. matlab matrix help
    Posted in the Math Software Forum
    Replies: 3
    Last Post: May 18th 2010, 12:21 AM
  2. Matrix Operations in MATLAB
    Posted in the Math Software Forum
    Replies: 0
    Last Post: February 9th 2010, 09:31 PM
  3. Matlab help ........Matrix
    Posted in the Math Software Forum
    Replies: 0
    Last Post: April 4th 2009, 06:05 AM
  4. Matrix problem in Matlab
    Posted in the Math Software Forum
    Replies: 7
    Last Post: January 1st 2009, 11:06 AM
  5. matrix size in matlab
    Posted in the Math Software Forum
    Replies: 4
    Last Post: November 23rd 2008, 02:38 AM

Search Tags


/mathhelpforum @mathhelpforum