[英]Copying matrix using text import wizard in Excel
I am copying some values from Maple software.我正在从 Maple 软件中复制一些值。 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]] 这必须在 excel 中复制为
[[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.使用notepad++,粘贴上面的文字。 replace all "[" with "\n".将所有“[”替换为“\n”。 and replace "]" with "" (nothing).并将“]”替换为“”(无)。
Then copy all & paste in excel, with "," as delimiter.然后全部复制并粘贴到 excel 中,用“,”作为分隔符。 (: (:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.