B{1,1}=[1,2];
B{1,2}='kitty';
B
B =
[1x2 double] 'kitty'
celldisp(B)
B{1} =
1 2
B{2} =
kitty
可以看到,元胞数组就是能包含不同变量类型的数组,每一个元素又是一个数组
想要与数值数组相互转化
A=magic(3);
num...
分类:
编程语言 时间:
2015-03-19 18:26:32
阅读次数:
222
RMQ。 1 /* 3183 */ 2 #include 3 #include 4 #include 5 6 #define MAXN 1005 7 8 char s[MAXN], ans[MAXN]; 9 int dp[MAXN][MAXN];10 int n,len,m;11 12 i...
分类:
其他好文 时间:
2015-03-19 00:43:18
阅读次数:
236
POJ2002 Squares(二维点哈希)...
分类:
其他好文 时间:
2015-03-17 22:00:06
阅读次数:
146
查看apache工作模式的办法: `apache2ctl -V` Server version: Apache/2.4.7 (Ubuntu) Server built: Apr 3 2014 12:20:28 Server‘s Module Magic Number: 20120211:27 Server loaded: APR 1.5.1-dev, APR-UTIL 1...
分类:
Web程序 时间:
2015-03-16 21:27:53
阅读次数:
237
A knight moves on a chessboard two squares up, down, left, or right followed by one square in one of the two directions perpendicular to the first part of the move (i.e., the move is L-shaped). Suppos...
分类:
编程语言 时间:
2015-03-15 12:27:03
阅读次数:
181
URAL 1727. Znaika's Magic Numbers(数学 vector)...
分类:
其他好文 时间:
2015-03-15 09:26:41
阅读次数:
107
DescriptionBackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journeyaround th...
分类:
其他好文 时间:
2015-03-13 22:10:39
阅读次数:
223
在使用zxing开源库的时候,发现比较大的图片无法扫描成功,报如下异常: com.google.zxing.NotFoundException 通过scale down Bitmap可以解决上述问题,720是一个Magic number,可以根据自己的项目调整 // Scale...
分类:
其他好文 时间:
2015-03-13 14:42:53
阅读次数:
155
题意:Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in the...
分类:
其他好文 时间:
2015-03-12 17:01:39
阅读次数:
128
大多的PHP程序,都有这样的逻辑:如果发现php.ini配置为不给GPC变量自动添加转义斜线,则PHP自动为GPC添加转义斜线但是事实上,这是错误的,因为它改变了GPC变量原来的值.有这个遗留习惯的原因是PHP程序使用往往配合mysql, 而mysql对特殊字符的转义,采取的是添加转义斜线,但是其它...
分类:
Web程序 时间:
2015-03-12 11:01:32
阅读次数:
140