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
题目大意:
描述了另外一种斐波那契
F[n] = x*F[n-1] + y*F[n-2];
求segma(F[i]^2);
思路分析:
构造矩阵的详细
请戳我
构造矩阵可以得到
中间矩阵为
1 1 0
0
0 x^2 y^2 2*x*y
0 1
0 0
0 x
0 y
#include
#include
#include
#...
分类:
其他好文 时间:
2014-05-22 23:43:19
阅读次数:
318
胜利大逃亡
Problem Description
Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.
魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟...
分类:
其他好文 时间:
2014-05-22 17:18:20
阅读次数:
333
矩阵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