Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica Matrix creation help

  1. Feb 3, 2012 #1

    I have a whole bunch of data (Arrays of the form H1, H2, H3 etc) that I want to crunch to create 10 more variables. I did:


    Where fj(i)= fj(H1[],H2[],...), the functions are different functions of the numerical data I have.

    Now when I try to Import "temp.mx" I get all kinds of things except a 22x10 matrix that I really badly want.


    This gives the result that data is 110 dimensions where each of my 10 data for each "i" is stored as 5 separate pieces of data, giving data5 a dimenion of 5*22=110

    When I do


    This time I get Dimension {} and all data is stored as one piece.

    How can I store my calculations such that the result is a 22x10 matrix from which data can be easily extracted? This situation is driving me insane. Any help will be greatly appreciated.

  2. jcsd
  3. Feb 4, 2012 #2
    I understand this compulsion to use For[] cannot be resisted.
    The result is often problems like what you are seeing.

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook