﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-像大海一样-文章分类-linux</title><link>http://www.cppblog.com/matdu/category/7679.html</link><description>matdu</description><language>zh-cn</language><lastBuildDate>Fri, 19 Dec 2008 13:49:23 GMT</lastBuildDate><pubDate>Fri, 19 Dec 2008 13:49:23 GMT</pubDate><ttl>60</ttl><item><title>linux常用命令（一）</title><link>http://www.cppblog.com/matdu/articles/69822.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Fri, 19 Dec 2008 04:12:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/69822.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/69822.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/69822.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/69822.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/69822.html</trackback:ping><description><![CDATA[<pre>man  获取相关命令的帮助信息
例如：man dir 可以获取关于dir的使用信息。
info  获取相关命令的详细使用方法
例如：info info 可以获取如何使用info的详细信息。
</pre>
<pre>&nbsp;</pre>
<pre>
<table cellSpacing=5 cellPadding=1 width=700 border=0>
    <tbody>
        <tr>
            <td class=td1>文件操作：</td>
        </tr>
        <tr>
            <td>
            <pre><a href="http://math.ecnu.edu.cn/~jypan/linux/command/cat.htm"><u><font color=#800080>cat</font></u></a>  显示文件内容和合并多个文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#clear"><u><font color=#0000ff>clear</font></u></a>  清屏
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#chattr"><u><font color=#0000ff>chattr</font></u></a>  改变文件属性
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#chgrp"><u><font color=#0000ff>chgrp</font></u></a>  改变文件组权
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/chmod.htm"><u><font color=#0000ff>chmod</font></u></a>  改变文件或目录的权限
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/chown.htm"><u><font color=#0000ff>chown</font></u></a>  改变文件的属权
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#comm"><u><font color=#0000ff>comm</font></u></a>  比较两个已排过序的文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/cp.htm"><u><font color=#0000ff>cp</font></u></a>  将文件拷贝至另一文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/dd.htm"><u><font color=#0000ff>dd</font></u></a>  从指定文件读取数据写到指定文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#df"><u><font color=#0000ff>df</font></u></a>  报告磁盘空间使用情况
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/diff.htm"><u><font color=#0000ff>diff</font></u></a>  比较两个文本文件，列出行不同之处
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#du"><u><font color=#0000ff>du</font></u></a>  统计目录／文件所占磁盘空间的大小
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#file"><u><font color=#0000ff>file</font></u></a>  辨识文件类型
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/emacs.pdf"><u><font color=#0000ff>emacs</font></u></a>  功能强大的编辑环境
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/find.htm"><u><font color=#0000ff>find</font></u></a>  搜索文件并执行指定操作(<a href="http://math.ecnu.edu.cn/~jypan/linux/command/find2.htm"><u><font color=#0000ff>find2</font></u></a>)
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/grep.htm"><u><font color=#0000ff>grep</font></u></a>  按给定模式搜索文件内容
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/head.htm"><u><font color=#0000ff>head</font></u></a>  显示指定文件的前若干行
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/less.htm"><u><font color=#0000ff>less</font></u></a>  按页显示文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/ln.htm"><u><font color=#0000ff>ln</font></u></a>  创建文件链接
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/locate.htm"><u><font color=#0000ff>locate</font></u></a>  查找符合条件的文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/more.htm"><u><font color=#0000ff>more</font></u></a>  在终端屏幕按帧显示文本文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/mv.htm"><u><font color=#0000ff>mv</font></u></a>  文件或目录的移动或更名
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#rm"><u><font color=#0000ff>rm/rmdir</font></u></a>  删除文件／目录
            sed</a>  利用script来处理文本文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#sort"><u><font color=#0000ff>sort</font></u></a>  对指定文件按行进行排序
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#tail"><u><font color=#0000ff>tail</font></u></a>  显示指定文件的最后部分
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#touch"><u><font color=#0000ff>touch</font></u></a>  创建文件
            tr</a>  转换字符
            <a href="http://math.ecnu.edu.cn/~jypan/linux/books/vim63manual.pdf"><u><font color=#0000ff>vi</font></u></a>  全屏编辑器
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#wc"><u><font color=#0000ff>wc</font></u></a>  显示指定文件中的行数，词数或字符数
            which</a>  在环境变量 $PATH 设置的目录里查找符合条件的文件
            </pre>
            </td>
        </tr>
        <tr>
            <td class=td1>压缩与备份:</td>
        </tr>
        <tr>
            <td>
            <pre>bzip2/bunzip2</a>  .bz2文件的压缩/解压缩程序
            cpio</a>  备份文件
            dump</a>  备份文件系统
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/gzip.htm"><u><font color=#0000ff>gzip/gunzip</font></u></a>  .gz文件的压缩/解压缩程序
            gzexe</a>  压缩可执行文件
            restore</a> 还原由倾倒(Dump)操作所备份下来的文件或整个文件系统(一个分区)
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#tar"><u><font color=#0000ff>tar</font></u></a>  将若干文件存档或读取存档文件
            unarj</a>  解压缩.arj文件
            zip/unzip</a>  压缩/解压缩 zip文件
            zipinfo</a>  列出zip压缩文件的详细信息
            </pre>
            </td>
        </tr>
        <tr>
            <td class=td1>磁盘操作:</td>
        </tr>
        <tr>
            <td>
            <pre><a href="http://math.ecnu.edu.cn/~jypan/linux/command/cd_pwd.htm"><u><font color=#0000ff>cd/pwd</font></u></a>  切换目录/显示当前工作目录
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#df"><u><font color=#0000ff>df</font></u></a>  显示磁盘的相关信息
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#du"><u><font color=#0000ff>du</font></u></a>  显示目录或文件的大小
            e2fsck</a>  检查ext2/ext3文件系统的正确性
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#fdisk"><u><font color=#0000ff>fdisk</font></u></a>  对硬盘进行分区
            fsck</a>  检查文件系统并尝试修复错误
            losetup</a>  设置循环设备
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/ls.htm"><u><font color=#0000ff>ls</font></u></a>  列出目录内容
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/mkdir.htm"><u><font color=#0000ff>mkdir</font></u></a>  创建目录
            mformat</a>  对MS-DOS文件系统的磁盘进行格式化
            mkbootdisk</a>  建立目前系统的启动盘
            mke2fs</a>  建立ext2文件系统
            mkisofs</a>  制作iso光盘映像文件
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/mount.htm"><u><font color=#0000ff>mount/umount</font></u></a> 加载文件系统/卸载文件系统
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#quota"><u><font color=#0000ff>quota</font></u></a>  显示磁盘已使用的空间与限制
            sync</a>  将内存缓冲区内的数据写入磁盘
            tree</a>  以树状图列出目录的内容
            </pre>
            </td>
        </tr>
        <tr>
            <td class=td1>系统操作:</td>
        </tr>
        <tr>
            <td>
            <pre><a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#alias"><u><font color=#0000ff>alias</font></u></a>  设置指令的别名
            chkconfig</a>  检查，设置系统的各种服务
            clock</a>  调整 RTC 时间
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#date"><u><font color=#0000ff>date</font></u></a>  显示或设置系统时间与日期
            dmesg</a>  显示开机信息
            eval</a>  重新运算求出参数的内容
            exit</a>  退出目前的shell
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#export"><u><font color=#0000ff>export</font></u></a>  设置或显示环境变量
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#finger"><u><font color=#0000ff>finger</font></u></a>  查找并显示用户信息
            free</a>  显示内存状态
            hostid</a>  显示主机标识
            hostname</a>  显示主机名
            id</a>  显示用户标识
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#kill"><u><font color=#0000ff>kill</font></u></a>  删除执行中的程序或工作
            last</a>  列出目前与过去登入系统的用户相关信息
            logout</a>  退出系统
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#lsmod"><u><font color=#0000ff>lsmod</font></u></a>  显示已载入系统的模块
            modprobe</a>  自动处理可载入模块
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#passwd"><u><font color=#0000ff>passwd</font></u></a>  设置用户密码
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#ps"><u><font color=#0000ff>ps</font></u></a>  process status 报告程序状况
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#reboot"><u><font color=#0000ff>reboot</font></u></a>  重启计算机
            rhwo</a>  查看系统用户
            rlogin</a>  远程登入
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/rpm.htm"><u><font color=#0000ff>rpm</font></u></a>  管理Linux各项套件的程序
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#shutdown"><u><font color=#0000ff>shutdown</font></u></a>  关机
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#su"><u><font color=#0000ff>su</font></u></a> switch user 变更用户身份
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#top"><u><font color=#0000ff>top</font></u></a>  显示，管理执行中的程序
            uname</a>  显示系统信息
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/useradd_del.htm"><u><font color=#0000ff>useradd/userdel</font></u></a>	 添加用户 / 删除用户
            userinfo  图形界面的修改工具
            usermod  修改用户属性，包括用户的shell类型，用户组等，甚至还能改登录名
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#w"><u><font color=#0000ff>w</font></u></a>  显示目前注册的用户及用户正运行的命令
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#whereis"><u><font color=#0000ff>whereis</font></u></a>	 确定一个命令的二进制执行码，源码及帮助所在的位置
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#who"><u><font color=#0000ff>who</font></u></a>  列出正在使用系统的用户
            whois</a>  查找并显示用户信息
            </pre>
            </td>
        </tr>
        <tr>
            <td class=td1>网络通信:</td>
        </tr>
        <tr>
            <td>
            <pre><a href="http://math.ecnu.edu.cn/~jypan/linux/command/arp.htm"><u><font color=#0000ff>arp</font></u></a>  网地址的显示及控制
            ftp</a>  文件传输
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/lftp.htm"><u><font color=#0000ff>lftp</font></u></a>  文件传输
            mail</a>  发送／接收电子邮件
            mesg</a>  允许或拒绝其他用户向自己所用的终端发送信息
            mutt</a>  E-mail管理程序
            ncftp</a>  文件传输
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#netstat"><u><font color=#0000ff>netstat</font></u></a>  显示网络连接、路由表和网络接口信息
            pine</a>  收发电子邮件，浏览新闻组
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/other.htm#ping"><u><font color=#0000ff>ping</font></u></a>  向网络上的主机发送 icmp echo request 包
            ssh</a>  安全模式下的远程登录
            telnet</a>  远程登录
            talk</a>  与另一用户对话
            traceroute</a>  显示到达某一主机所经由的路径及所使用的时间
            <a href="http://math.ecnu.edu.cn/~jypan/linux/command/wget.htm"><u><font color=#0000ff>wget</font></u></a> 从网络上自动下载文件
            write</a>  向其他用户的终端写信息
            </pre>
            </td>
        </tr>
    </tbody>
</table>
</pre>
<img src ="http://www.cppblog.com/matdu/aggbug/69822.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-12-19 12:12 <a href="http://www.cppblog.com/matdu/articles/69822.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C常用数学库</title><link>http://www.cppblog.com/matdu/articles/69293.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Fri, 12 Dec 2008 13:39:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/69293.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/69293.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/69293.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/69293.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/69293.html</trackback:ping><description><![CDATA[<p>&nbsp;#include &lt;stdlib.h&gt;<br>&nbsp; int abs( int num );<br>&nbsp; double fabs( double arg );<br>&nbsp; long labs( long num );<br>&nbsp;&nbsp;&nbsp; 函数返回num的绝对值</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double acos( double arg );<br>&nbsp;&nbsp;&nbsp; 函数返回arg的反余弦值，arg的值应该在-1到1之间</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double asin( double arg );<br>&nbsp;&nbsp;&nbsp; 函数返回arg的反正弦值，arg的值应该在-1到1之间</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double atan( double arg );<br>&nbsp;&nbsp;&nbsp; 函数返回arg的反正切值</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double atan2( double y, double x );<br>&nbsp;&nbsp;&nbsp; 函数返回y/x的反正切值，并且它可以通过x，y的符号判断<br>&nbsp;&nbsp;&nbsp; （x，y）所表示的象限，其返回的也是对应象限的角度值</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double ceil( double num );<br>&nbsp; double floor( double arg );<br>&nbsp;&nbsp;&nbsp; ceil函数返回不小于num的最小整数，如num = 6.04, 则返回7.0<br>&nbsp;&nbsp;&nbsp; floor函数返回不大于num的最大的数，如num = 6.04, 则返回6.0</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double cos( double arg );<br>&nbsp; double sin( double arg );<br>&nbsp; double tan( double arg );<br>&nbsp;&nbsp;&nbsp; 函数分别返回arg的余弦，正弦，正切值，arg都是用弧度表示</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double cosh( double arg );<br>&nbsp; double sinh( double arg );<br>&nbsp; double tanh( double arg );<br>&nbsp;&nbsp;&nbsp; 函数分别返回arg的双曲余弦，双曲正弦，双曲正切，arg都是用弧度表示的</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double fmod( double x, double y );<br>&nbsp;&nbsp;&nbsp; 函数返回x/y的余数</p>
<p>&nbsp; #include &lt;stdlib.h&gt;<br>&nbsp; div_t div( int numerator, int denominator );<br>&nbsp; ldiv_t ldiv( long numerator, long denominator );<br>&nbsp;&nbsp;&nbsp; 函数返回numerator/demominator操作的，返回一个结构体div_t(ldiv_t)<br>&nbsp;&nbsp;&nbsp; div_t(ldiv_t)结构体中定义了quot(商),rem(余数)</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double exp( double arg );<br>&nbsp;&nbsp;&nbsp; 函数返回e(自然底数)的arg次</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double log( double num );<br>&nbsp;&nbsp;&nbsp; 函数返回num的自然对数值num应为大于0的数</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double log10( double num );<br>&nbsp;&nbsp;&nbsp; 函数返回num以10为底的对数值，num也应该为大于0的数</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double pow( double base, double exp );<br>&nbsp;&nbsp;&nbsp; 函数返回以base为底的exp次，不允许的取值范围:<br>&nbsp;&nbsp;&nbsp; 当base 为 0 且exp 小于或等于 0<br>&nbsp;&nbsp;&nbsp; 当base 为 负数 且 exp 不为整数</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double sqrt( double num );<br>&nbsp;&nbsp;&nbsp; 函数返回num的开方值，num应该为不小于0的值</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double frexp( double num, int* exp );<br>&nbsp;&nbsp;&nbsp; 函数可以获取科学计数法的参数<br>&nbsp;&nbsp;&nbsp; 函数返回在0.5到1.0之间的值， 传入exp的参数用于返回num的指数<br>&nbsp;&nbsp;&nbsp; (以2为底数计算，即：num = mantissa * (2 ^ exp))</p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double ldexp( double num, int exp );<br>&nbsp;&nbsp;&nbsp; 函数返回num*(2^exp)的值，如果结果溢出，返回HUGE_VAL </p>
<p>&nbsp; #include &lt;math.h&gt;<br>&nbsp; double modf( double num, double *i );<br>&nbsp;&nbsp;&nbsp; 函数分割num，将整数部分填入i的值，小数部分返回</p>
<p>文章出处：<a href="http://www.diybl.com/course/3_program/c/c_js/2007925/73590.html">http://www.diybl.com/course/3_program/c/c_js/2007925/73590.html</a></p>
<img src ="http://www.cppblog.com/matdu/aggbug/69293.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-12-12 21:39 <a href="http://www.cppblog.com/matdu/articles/69293.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>常用Matlab距阵运算函数</title><link>http://www.cppblog.com/matdu/articles/63700.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Fri, 10 Oct 2008 14:09:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/63700.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/63700.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/63700.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/63700.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/63700.html</trackback:ping><description><![CDATA[1 基本矩阵函数和操作 <br><br>eye 单位矩阵 <br>zeros 全零矩阵 <br>ones 全1矩阵 <br>rand 均匀分布随机阵 <br>genmarkov 生成随机Markov矩阵 <br>linspace 线性等分向量 <br>logspace 对数等分向量 <br>logm 矩阵对数运算 <br>cumprod 矩阵元素累计乘 <br>cumsum 矩阵元素累计和 <br>toeplitz Toeplitz矩阵 <br>disp 显示矩阵和文字内容 <br>length 确定向量的长度 <br>size 确定矩阵的维数 <br>diag 创建对角矩阵或抽取对角向量 <br>find 找出非零元素1的下标 <br>matrix 矩阵变维 <br>rot90 矩阵逆时针旋转90度 <br>sub2ind 全下标转换为单下标 <br>tril 抽取下三角阵 <br>triu 抽取上三角阵 <br>conj 共轭矩阵 <br>companion 伴随矩阵 <br>det 行列式的值 <br>norm 矩阵或向量范数 <br>nnz 矩阵中非零元素的个数 <br>null 清空向量或矩阵中的某个元素 <br>orth 正交基 <br>rank 矩阵秩 <br>trace 矩阵迹 <br>cond 矩阵条件数 <br>inv 矩阵的逆 <br>rcond 逆矩阵条件数 <br>lu LU分解或高斯消元法 <br>pinv 伪逆 <br>qr QR分解 <br>givens Givens变换 <br>linsolve 求解线性方程 <br>lyap Lyapunov方程 <br>hess Hessenberg矩阵 <br>poly 特征多项式 <br>schur Schur分解 <br>expm 矩阵指数 <br>expm1 矩阵指数的Pade逼近 <br>expm2 用泰勒级数求矩阵指数 <br>expm3 通过特征值和特征向量求矩阵指数 <br>funm 计算一般矩阵函数 <br>logm 矩阵对数 <br>sqrtm 矩阵平方根 <br><br>2 特性值与奇异值 <br>spec 矩阵特征值 <br>gspec 矩阵束特征值 <br>bdiag 块矩阵，广义特征向量 <br>eigenmar- 正则化Markov特征 <br>kov 向量 <br>pbig 特征空间投影 <br>svd 奇异值分解 <br>sva 奇异值分解近似 <br><br><br><br>3 矩阵元素运算 <br><br>cumprod 元素累计积 <br>cumsum 元素累计和 <br>hist 统计频数直方图 <br>max 最大值 <br>min 最小值 <br>mean 平均值 <br>median 中值 <br>prod 元素积 <br>sort 由大到小排序 <br>std 标准差 <br>sum 元素和 <br>trapz 梯形数值积分 <br>corr 求相关系数或方差 <br><br><br><br>4稀疏矩阵运算 <br><br>sparse 稀疏矩阵 <br>adj2sp 邻接矩阵转换为稀疏矩阵 <br>full 稀疏矩阵转换为全矩阵 <br>mtlb_sparse 将scilab稀疏矩阵转换为matlab稀疏矩阵格式 <br>sp2adj 将稀疏矩阵转换为邻接矩阵 <br>speye 稀疏矩阵方式单位矩阵 <br>sprand 稀疏矩阵方式随机矩阵 <br>spzeros 稀疏矩阵方式全零阵 <br>lufact 稀疏矩阵LU分解 <br>lusolve 稀疏矩阵方程求解 <br>spchol 稀疏矩阵Cholesky分解</cn> <br>
<img src ="http://www.cppblog.com/matdu/aggbug/63700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-10-10 22:09 <a href="http://www.cppblog.com/matdu/articles/63700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>多系统安装指南</title><link>http://www.cppblog.com/matdu/articles/62987.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Sun, 28 Sep 2008 07:21:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/62987.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/62987.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/62987.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/62987.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/62987.html</trackback:ping><description><![CDATA[这里的多系统是指超过两个的操作系统，比如XP（中文版，英文版），Linux，W2000等。实际上两个系统的安装更为普遍，比如XP和linux，XP和Vista。但有时候我们需要三个乃至更多的系统（三个，四个&#8230;&#8230;），此时就需要一定的技巧了。<br><br>我们刚买来机器，没有系统时，只能进去bios，但它不是一个操作系统。首先要作的是分区，那么可以用一个xp的安装盘带的dos工具，进入，进行分区。如果要装三个系统，则分区注意要分三个以上的主分区，每一个主分区可以装一个系统。具体安装时就和一般的装系统一样了。<br><br>装好之后，在启动时会进入一个选择的界面。常用的MS的几个系统，一般在一个界面出现；但是如有linux与MS的系统共存，则首先是选择linux还是MS的几个系统，选LInux则直接进入，选MS的系统则会再进入一个选择界面，此时再对XP活2000活Vista进行选择。但一般而言，硬盘分区最多能分四个主分区，那么暗含的意思就是最多只能装四个系统。<br><br>多系统的一个具体实例就是一个家庭里，几人共用一个PC，有人喜欢英文的系统，有人喜欢中文的系统，但同时还需要Linux来工作，那么就可以装三个系统。
<img src ="http://www.cppblog.com/matdu/aggbug/62987.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-09-28 15:21 <a href="http://www.cppblog.com/matdu/articles/62987.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux 与xp下的计算时间比较</title><link>http://www.cppblog.com/matdu/articles/57306.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Sun, 27 Jul 2008 10:46:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/57306.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/57306.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/57306.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/57306.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/57306.html</trackback:ping><description><![CDATA[早就听说linux下计算效率要高点，所以许多大的程序一般在linux下进行。最近我自己也特意用了一个小的程序来进行比较二者的效率。<br><br>我的linux是FC9，这是一个比较新的linux版本，对xp的硬盘能自动挂载。我用man 命令分别查看了有g++编译和c++编译，也就是说可以顺利编译c++文件。<br><br>我在xp下用的是VC6编译，这是微软的产物，对于写应用软件很好用，但对于数值计算就一般了，但我也不太清楚哪个编译器对数值有好的编译，就一般用vc6了。<br><br>我写了一个小的程序，就是在里面有一个10000000的简单循环迭加，类型我分别用了int和double型的进行实验。我发现这两种类型，在linux下进行计算有很高的效率。linux和xp的计算时间大概是1：5，这可不是一个小数啊，看来还是linux的计算效率高！但是我仅仅是进行了一个for循环，没有用其他的复杂的程序，可能在应用软件方面二者就是差不多了？！
<img src ="http://www.cppblog.com/matdu/aggbug/57306.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-07-27 18:46 <a href="http://www.cppblog.com/matdu/articles/57306.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>fedora7和fedora8的区别</title><link>http://www.cppblog.com/matdu/articles/52690.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Mon, 09 Jun 2008 13:36:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/52690.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/52690.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/52690.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/52690.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/52690.html</trackback:ping><description><![CDATA[最近由于一些计划出现错误，对fedora7（FC7）和fedora8（FC8）都进行了详细的接触。我发现二者还是有一点差别。<br><br>差别主要有：<br>（1）安装时，在决定交换分区的大小时FC7会要求我们自己决定，但FC8已经可以自己决定一个很好的大小了。<br><br>（2）在安装时，FC7选的文件一般默认的桌面系统都选了；FC8的会默认只选了一个。<br><br>（3）对于挂载，FC7里必须自己手动一下，而后可以把xp的各个盘挂载到linux下；FC8却自己默认了挂载，安装好了就已经挂载了xp的盘，当然不显盘符（C，D，E等）。<br><br><br>当然，更多的差别我仍在寻找中&#8230;&#8230; 
<img src ="http://www.cppblog.com/matdu/aggbug/52690.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-06-09 21:36 <a href="http://www.cppblog.com/matdu/articles/52690.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>xp和linux双系统下删除linux</title><link>http://www.cppblog.com/matdu/articles/52689.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Mon, 09 Jun 2008 13:26:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/52689.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/52689.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/52689.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/52689.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/52689.html</trackback:ping><description><![CDATA[双系统的安装已经不是什么难事，但有了双系统并不保证就一切都好。有时候我们仍然想改变一下双系统，那么在此时再去删除linux就需要稍麻烦一点。<br><br>我们知道在xp里一个很好的分区工具——PQ（partition magic）,但在双系统下，由于linux改变了xp里C盘的一个启动项，使得PQ无法打开。并且用xp安装盘的PQ也无法打开。那么此时对linux的格式化就无法进行。<br><br>我们可以按一下步骤进行删除linux：<br><br>（1）用xp的安装盘，进入dos下，执行命令fdisk/mbr。该命令修复双系统的linux对启动的修改，从而使启动时不会出现原来的选择xp/linux的窗口。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 执行完后，退出dos，重新启动发现就只能进入xp了。<br><br>（2）用PQ对linux分区格式化，我们可以把它们该到fat32或ntfs，随即何如xp的其他盘里。这样linux就从我们机器里完全消除了！<br><br>
<img src ="http://www.cppblog.com/matdu/aggbug/52689.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-06-09 21:26 <a href="http://www.cppblog.com/matdu/articles/52689.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux cd命令</title><link>http://www.cppblog.com/matdu/articles/51859.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Mon, 02 Jun 2008 00:41:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/51859.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/51859.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/51859.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/51859.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/51859.html</trackback:ping><description><![CDATA[linux中，cd命令是一个基础的命令，它类似于dos中的cd，又略有不同。下面仔细介绍几个常用格式：<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 改变你的根路径： 键入cd，按回车键。
<p>　　 进入一个子目录：&nbsp; 键入cd，空格，然后是子路径名（例如：cd Documents），再按回车键。 </p>
<p>　　 进入当前目录的上一级目录：键入cd，空格，两个点，然后按回车键。 </p>
<p>　　 进入一个特定的目录：键入cd，空格，路径名（例如 cd /usr/local/lib），再按回车键。 </p>
<p>　　 为了确定你所在的目录：你可以键入pwd，按回车键，你将看到你所在的当前目录名称。 </p>
<br><br>
<img src ="http://www.cppblog.com/matdu/aggbug/51859.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-06-02 08:41 <a href="http://www.cppblog.com/matdu/articles/51859.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>删除linux的旧内核</title><link>http://www.cppblog.com/matdu/articles/51519.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Thu, 29 May 2008 13:11:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/51519.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/51519.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/51519.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/51519.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/51519.html</trackback:ping><description><![CDATA[linux刚装好后，默认的是自动更新，但更新后，它的旧的内核不会丢失，在启动时会发现有新的版本。为了节约空间，很有必要把旧的的内核删除！！<br><br>1 用命令rpm -qa|grep kernel 来查找所有的版本，它会显示出所有的版本；<br><br>我的是fc7的：<br><br>linux 2.6.23-15-80.fc7<br>linux 2.6.21-1.3194.fc7<br><br>2 用命令rpm -e kernel-2.6.21-1.3194.fc7 把旧的版本删除。如果有多个旧的版本，需要逐一删除，剩下最新的一个版本就行！<br><br>3 在用命令 rpm -e kernel-level-2.6.23-15-80.fc7 把这个新的版本进行确定。<br><br>ok，一切确定！！<br><br><br>
<img src ="http://www.cppblog.com/matdu/aggbug/51519.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-05-29 21:11 <a href="http://www.cppblog.com/matdu/articles/51519.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>修改linux与xp的启动顺序</title><link>http://www.cppblog.com/matdu/articles/49354.html</link><dc:creator>杜伟</dc:creator><author>杜伟</author><pubDate>Fri, 09 May 2008 12:51:00 GMT</pubDate><guid>http://www.cppblog.com/matdu/articles/49354.html</guid><wfw:comment>http://www.cppblog.com/matdu/comments/49354.html</wfw:comment><comments>http://www.cppblog.com/matdu/articles/49354.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/matdu/comments/commentRss/49354.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/matdu/services/trackbacks/49354.html</trackback:ping><description><![CDATA[装linux与xp的双系统后，一般grub默认的是启动项第一个是linux，这让我们大家很不爽，毕竟更多的时候，我们用xp娱乐，在linux工作时间少！！因<br><br>此很有必要修改一下两者的启动顺序 。<br><br><br><br>以root进入linux，在boot/grub/grub.conf,以文本方式打开grub.conf, 会看到有这些语句：<br><br>default=0;<br>timeout=5;<br><br>0即启动项第一个是linux，改为1即为默认项为xp<br><br>5是等待的时间为5秒，如果觉得时间短，可以改为任意一个常数，比如10.<br><br>修改后保存即可。<br><br><br>重启，一切ok！<br><br><br>
<img src ="http://www.cppblog.com/matdu/aggbug/49354.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/matdu/" target="_blank">杜伟</a> 2008-05-09 20:51 <a href="http://www.cppblog.com/matdu/articles/49354.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>