Results 1 to 3 of 3

Math Help - Turn Sequence output into MATRIX

  1. #1
    Junior Member
    Joined
    Feb 2008
    Posts
    64

    Turn Sequence output into MATRIX

    I have a peice of code that gives me an answer as a sequence of numbers, i would liek to be able to view this sequence as a matrix however.

    I have an input N=25, length of sequence and then the sequence is output from x(1):x(25)

    i have this piece of code which seems to work, but i need to find a different way of implementing it and need to coem up with a different code, M=5:
    y(i,j)=x((i-1)*M+j)
    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 Stylis10 View Post
    I have a peice of code that gives me an answer as a sequence of numbers, i would liek to be able to view this sequence as a matrix however.

    I have an input N=25, length of sequence and then the sequence is output from x(1):x(25)

    i have this piece of code which seems to work, but i need to find a different way of implementing it and need to coem up with a different code, M=5:
    y(i,j)=x((i-1)*M+j)
    Please specify the language and or package.

    Unity based arrays => Fortran ??

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Mar 2007
    Posts
    206
    Awards
    1
    I might have misunderstood but it sounds like you are trying to reshape an array. If you are in matlab,
    Code:
    help reshape
    Elbarto
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How to turn 9 sin120 into (9*(squareroot3))/2
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: February 12th 2011, 07:45 AM
  2. How to get Transition matrix from input/output distributions???
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: May 3rd 2010, 11:42 PM
  3. How to turn a decimal into a fration
    Posted in the Algebra Forum
    Replies: 1
    Last Post: October 8th 2008, 04:27 PM
  4. Replies: 4
    Last Post: September 16th 2008, 12:47 AM
  5. how to turn this into echelon matrix?
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: August 3rd 2008, 02:24 PM

Search Tags


/mathhelpforum @mathhelpforum