cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Exporting results of matrics to excel file

YA_10963798
11-Garnet

Exporting results of matrics to excel file

I can't export my results to excel file when the results contains more than one matrics .

I am generating excel files for some results using the function(WRITEXCEL). When the matrics is vector which means has only one colunm it easily export it to excel file. However, when the results has more than one colunm like shown below it doesn't work. this error is on page 33. how can I solve that?

YA_10963798_0-1722266042764.png

 

 

 

 

 

 

It shows error 

YA_10963798_0-1722261927805.pngYA_10963798_1-1722261944219.pngYA_10963798_2-1722261958474.png

 

5 REPLIES 5

Hi @YA_10963798,

Thank you for your question!

 

I’d like to recommend to bring more context to your initial inquiry. 
Please refer to this guideline to make your questions more likely to receive a quick and useful answer.

 

Furthermore, please consult this Community Search guideline as well, which boosts up your chances of finding a resolution to your topic(s) much faster. Making use of our Knowledge Base

 

Thank you for your participation and please let me know if you need further assistance! 

 

Best regards,

Catalina
PTC Community Moderator
LucMeekes
23-Emerald III
(To:YA_10963798)

So, you are using Prime 9. Should have mentioned that.

1st error: You cannot have the vertical bar character "|" in a file or path name.

2nd error. The variable is undefined. Make sure it is defined. If A.beta is a function (like you use it in the WRITEEXCEL call), then you must use it as a function in the expression above as well. OR vice versa.

3rd error. Q.CPT is a vector of vectors that is a nested array. WRITEEXCEL accepts only flat arrays. You may need to flatten it first.

 

Success!
L:uc

Hi,

Here is one way to flatten a nested matrix, Works only if nested matrix is only one level and all nested matrices are the same size like L.inters

Recovering  the data from a flattened matrix file you need to know the stride as well as the data.

Capture.JPG

 

 

Cheers

Terry

 

Hi,

Noticably faster version of flatten

Capture.JPG

Hi Terry,

I really appreciate your help. I tried to do the same however it did not work. Still showing the same error message.

How can I export the data of such vector to excel. 

YA_10963798_0-1722343466599.png

it should look like the following table:

YA_10963798_1-1722343647563.png

 

Top Tags