avatar
问个蠢蠢的问题# Computation - 科学计算
a*n
1
我现在有一堆很大的数据要处理,大概有十几万个数吧(5列,几万行),txt file,格
式是:
1,2,3,4,5,
6,7,8,9,0,
。。。
11,22,33,44,55;
我打算用origin处理,但先要把这堆数据转换成一列(十几万行吧):
1
2
3
4
5
6
7
8
9
0
。。。
44
55
我用import,只能得到
1,2,3,4,5,
6,7,8,9,0,
。。。
11,22,33,44,55;
这样的格式。怎样才可以得到我希望的那样的一列数呢?
我试过了Matlab,Excel,JMP,都搞不定。哪位给支个招?多谢了!
avatar
a*s
2
perl,fortran,c,c++,any programming lang can do it.

【在 a**n 的大作中提到】
: 我现在有一堆很大的数据要处理,大概有十几万个数吧(5列,几万行),txt file,格
: 式是:
: 1,2,3,4,5,
: 6,7,8,9,0,
: 。。。
: 11,22,33,44,55;
: 我打算用origin处理,但先要把这堆数据转换成一列(十几万行吧):
: 1
: 2
: 3

avatar
n*m
3
Very easy.
1) You may use Mivrosoft Word to open the TXT file.
2) Then you click the menu "Edit" --> "Replace" to open the find&replace
window.
3) Find ",", and replace it with "^p" (it is a mark of line break).
4) Click "Replace All".
5) Save the file.
Done!

,格

【在 a******s 的大作中提到】
: perl,fortran,c,c++,any programming lang can do it.
avatar
x*u
4
Do you know to do this in emacs? Thanks.

file

【在 n******m 的大作中提到】
: Very easy.
: 1) You may use Mivrosoft Word to open the TXT file.
: 2) Then you click the menu "Edit" --> "Replace" to open the find&replace
: window.
: 3) Find ",", and replace it with "^p" (it is a mark of line break).
: 4) Click "Replace All".
: 5) Save the file.
: Done!
:
: ,格

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。