boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 问个蠢蠢的问题
相关主题
请教:如何使C++计算得到的结果直接生成所需要的曲线图?
how to extract long number from xml to excel via vba?
[转载] 问个matlab画图问题
[转载] 问个matlab的问题
问个Matlab的问题
问个关于matlab 编译exe的问题
[合集] 问个matlab的问题 (转载)
问个matlab矩阵的问题
问个matlab的matrix问题
问个Matlab优化求解的问题.
相关话题的讨论汇总
话题: replace话题: file话题: 44话题: 55话题: txt
进入Computation版参与讨论
1 (共1页)
a**n
发帖数: 56
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,都搞不定。哪位给支个招?多谢了!
a******s
发帖数: 232
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

n******m
发帖数: 14
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.
x*****u
发帖数: 3419
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!
:
: ,格

n******m
发帖数: 14
5
Sorry, I don't know. But you may try this website:
http://www.gnu.org/software/emacs/emacs.html
Good luck.

【在 x*****u 的大作中提到】
: Do you know to do this in emacs? Thanks.
:
: file

1 (共1页)
进入Computation版参与讨论
相关主题
问个Matlab优化求解的问题.
问个 matlab 的问题
问个MATLAB矩阵问题
问个matlab和IDL数据兼容的问题,包子酬谢!
问个matlab的弱问题
问个matlab画图问题
问个matlab画图的问题
问个matlab的eigs的问题
问个不该问的,matlab盗版用起来有问题吗?
问个matlab debug的问题
相关话题的讨论汇总
话题: replace话题: file话题: 44话题: 55话题: txt