简体   繁体   中英

Copying matrix using text import wizard in Excel

I am copying some values from Maple software. It will give the values as [[1,2,3,4],[2,3,4,5],[3,4,5,6]] This has to be copied in excel as

[[1    2    3    4]
[2    3    4    5]
[3    4    5    6]]

So we can replace [ and ] easily. I tried text import wizard with delimiter ','. It is displaying like this:

   [[1    2    3    4]    [2    3    4    5]    [3    4    5    6]]

All rows are appearing in a single row. How to get the required format?

Use notepad++, paste the above text. replace all "[" with "\n". and replace "]" with "" (nothing).

Then copy all & paste in excel, with "," as delimiter. (:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM