| New Reply |
Mathematica Matrix creation help |
Share Thread |
| Feb3-12, 08:13 PM | #1 |
|
|
Mathematica Matrix creation help
Hi,
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: For[i=1,i<23,i++,{f1(i),f2(i),..,f10(i)}>>>"temp.mx"] Where fj(i)= fj(H1[[i]],H2[[i]],...), 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. data5=Import["temp.mx","Table"] Dimensions[data5] 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 data5=Import["temp.mx"] Dimensions[data5] 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. Thanks |
| Feb4-12, 06:07 PM | #2 |
|
|
The result is often problems like what you are seeing. Try Table[{f1[i],f2[i],..,f10[i]},{i,1,22}]>>"temp.mx" |
| New Reply |
| Tags |
| mathematica, matrix |
Similar discussions for: Mathematica Matrix creation help
|
||||
| Thread | Forum | Replies | ||
| Mathematica Distance Matrix | Math & Science Software | 4 | ||
| Mathematica matrix assistance | Math & Science Software | 1 | ||
| [Mathematica] “Explose” a matrix | Math & Science Software | 7 | ||
| Mathematica - Construct a Matrix | Math & Science Software | 3 | ||
| Matrix Handling in Mathematica | Math & Science Software | 2 | ||