1、matlab允许向量(和矩阵)合并,且matlab提供了两种合并方式,[a,b]和[a;b],两者的结果是不一样的。
a=rand(2,3); b=rand(2,3); c=[a;b]; d=[a,b]; c的结果是将b整体合并到a 的下边,而d的结果是整体将b合并到a
的右边。 2、创建等差向...
分类:
其他好文 时间:
2014-05-23 02:59:59
阅读次数:
268
当前的软件工程技术:已经老去的面向过程,正当壮年的面向对象,冉冉升起的面向服务.面向过程技术(结构化程序设计技术):DFD图,ER模型,UC矩阵.面向对象技术:继承,封装,多态,复用等.面向服务技术:业务的组合,面向服务,与IT技术的无关性.面向过程的理解:世界的一切都不是孤立的,它们相互地紧密联系...
分类:
其他好文 时间:
2014-05-23 02:48:31
阅读次数:
277
原文:Matlab编程基础平台:Win7 64 bit,Matlab R2014a(8.3)
“Matlab”是“Matrix Laboratory”
的缩写,中文“矩阵实验室”,是强大的数学工具。本文侧重于Matlab的编程语言侧面,讲述Matlab的基本语法,以及用Matlab语言进行程序设计。...
分类:
其他好文 时间:
2014-05-22 00:17:34
阅读次数:
642
矩阵M是一个 mxn
的矩阵,现在要给M矩阵的第一列都要乘上10,使其第一列扩大10倍,那肿么做呢? 我第一时间用的是: M(:,1) = M(:,1)*10; //错误的
但是这个错了,结果是不对的 这里要用点乘才行,所以正确的写法是: M(:,1) = M(:,1).*10; // 正确写法 这...
分类:
其他好文 时间:
2014-05-21 20:19:26
阅读次数:
781
一、基于遥控器数据用户评分矩阵的计算:五类属性收藏(考虑次数,收藏节目和收藏频道的不同)预订(考虑次数)分享(考虑次数)观看(考虑次数,时长)搜索(考虑次数)对于某个节目的评分=搜索×搜索权重×搜索次数+。。。(其他类似)。。。+收藏×收藏次数×收藏权重(如果收藏了频道a,a和b同时播出节目c,那么...
分类:
其他好文 时间:
2014-05-21 18:55:55
阅读次数:
260
public class setZero {
static void print(int [][]a){
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
/*stati...
分类:
其他好文 时间:
2014-05-21 16:16:56
阅读次数:
252
Evolution is a long, long process with extreme complexity and involves many species. Dr. C. P. Lottery is currently investigating a simplified model of evolution: consider that we haveN (2
N N -1, a...
分类:
其他好文 时间:
2014-05-21 13:43:27
阅读次数:
444
Description
Facer's pet cat just gave birth to a brood of little cats. Having considered the health of those lovely cats, Facer decides to make the cats to do some exercises. Facer has well designe...
分类:
其他好文 时间:
2014-05-21 10:36:57
阅读次数:
297
Description
In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn ? 1 + Fn ? 2 for n ≥ 2. For example, the first ten terms of
the Fibonacci sequence are:
0, 1, 1, 2, 3, 5, 8, 13, 21, ...
分类:
其他好文 时间:
2014-05-21 09:39:15
阅读次数:
231