现在有两个文本矩阵,文本一和文本二,需要做的问题是,看第一个矩阵的第三列是不是落在第二个矩阵的第一列和第二列之间, 如果是则输出一个新文件,第一列是文本一的第一列,第二列是文本一的第二列,第三列是文本二的第三列,谢谢 说明:我会用matlab做,在这里我想用perl做,谢谢 文本一 524 19 54 527 19 540 539 19 191 561 19 828 575 19 441 688 19 1108 1058 19 4896 1059 19 4896 1081 19 365 1089 19 149 ...
by liuguiyou1981 - Perl - 2009-07-30 12:47:24 阅读(1821) 回复(1)
大家好, 我现在需要一个做矩阵运算的程序。对于矩阵X,首先将其转置X‘ = XT 然后求M = X*X’ 请问这个程序该如何实现? 如果用PDL的话会不会更方便点? 非常感谢大家!
本帖最后由 xiayuu119 于 2014-09-04 18:27 编辑 我是数据是:行列都非常多 n A B C D E F G a 1 2 3 4 5 6 7 b 2 3 4 5 6 7 8 c 2 3 5 6 1 5 1 转换成: A a 1 A b 2 A c 2 B a 2 B b 3 B c 3 . . . . 将这个矩阵转换为 3列。 新手一个,请大家帮忙啊!
http://perldoc.perl.org/ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44757/showart_429414.html
http://fanqiang.chinaunix.net/program/perl/2001-04-16/1819.shtml http://fanqiang.chinaunix.net/system/hp-ux/2006-05-18/4181.shtml http://www.unix.org.ua/orelly/perl/sysadmin/ http://www.google.com/books?id=umJJXsFGO14C&printsec=frontcover&dq=perl+for+System+Administration&sig=5DFt_dCQl12B4AyIKbqpTCrtJ9g 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u...
perl perl A powerful text-processing language that combines many of the most useful features of shell programs, C, awk, and sed, as well as adding extended features of its own. For more information, see Learning perl and Programming perl (both from O'Reilly). 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22178/showart_147058.html
perl 尝试一些聪明( 或 stupid) 的想法时, 错误难免会发生. 有经验的 perl 程序员常常使用三个参数来提前找到错误所在, perl 有很多命令行参数. 通过它, 我们有机会写出更简单的程序. 在这篇文章里我们来了解一些常用的参数. Safety Net Options 在使用 perl 尝试一些聪明( 或 stupid) 的想法时, 错误难免会发生. 有经验的 perl 程序员常常使用三个参数来提前找到错误所在, -C 是第一个. 这个参数编译 perl 程序但不会真正运行...
小弟现在刚刚开始学习perl,在看《perl语言入门学习》第10章做练习题时,题目如下附件。
这是我写的程序:
#!D:\perl64\bin\perl.exe -w
$secret = int(1 + rand 100);
print "请输入1到100的数字:\n";
while((chomp($input =
输入文件1: 1 a 4 c 8 h 13 f 输入文件2: 1 aaaaaaaaaaaaaaaaabvcd 2 ccccccccccccccncccccc 3 sssssssssssssssssghjc 4 aaaaaaaaaaaahjcccccaa 5 wwwwwwwwwwwwwwwwcwwww 6 haaaaaaaaaaaaaaaaaaaa 7 saaaaaaaaaaaaaaaaaaas 8 hhhhhhhhhhhhaahhhhhhh 9 sssssssssssssahssssss 10 wwwwsaaaaaaaaaaaaaaaa 11 ccccccccccccccccccccc 12 qqqqqqqqqqqqqqqqqqqqa 13 wwwwwwwwwwwwwahwwwwww 要求在文件2中搜...