clc;
clear;
fig=figure;
aviobj=avifile('e:\role0\1\21.avi');
n=50;
x=0:pi/n:2*pi;
y=sin(x);
k=0;
for t=0:pi/n:2*pi
k=k+1;
x(k)=t;
y(k)=sin(t);
H=plot(x,y,x(k),y(k),'or');
grid
MOV=getframe(fig);
aviob...
分类:
其他好文 时间:
2015-05-11 07:46:42
阅读次数:
156
% 16.腐蚀操作 MATLAB 实现腐蚀操作
clc;clear;close;
I=imread('e:\role0\003i.bmp'); %载入图像
I1=rgb2gray(I);
subplot(1,2,1);
imshow(I1);
title('灰度图像')
grid on; %显示网格线
axis on; ...
分类:
其他好文 时间:
2015-05-11 07:45:06
阅读次数:
128
原题地址铺瓷砖的变种,做法也是类似假设地板长下面这样,灰色的是无法填充的空洞,初始时可以把N块之外的地板填充成灰色的,便于边界处理假设现在从后向前已经处理完了一部分,绿色的砖块代表已经遍历过了,蓝色虚线框代表已经计算完成的子问题现在要遍历红色边框的地砖只可能有两种铺法:如果可以向下铺,很简单,递推到...
分类:
其他好文 时间:
2015-05-10 23:43:24
阅读次数:
242
//DFS:油田问题#include using namespace std;char grid[101][101];int n,m;//一个网格的8个方向int dir[8][2] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}}....
分类:
其他好文 时间:
2015-05-10 22:14:03
阅读次数:
96
Mr. B has recently discovered the grid named "spiral grid".Construct the grid like the following figure. (The grid is actually infinite. The figure is...
分类:
其他好文 时间:
2015-05-10 20:26:16
阅读次数:
121
GridView: A view that shows items in two-dimensional scrolling grid. The items in the grid come from theListAdapterassociated with this view. 简单说,Gr...
分类:
移动开发 时间:
2015-05-09 18:52:18
阅读次数:
132
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2015-05-09 06:30:14
阅读次数:
100
myStore?=??new?Ext.data.JsonStore({?? ??proxy:?new?Ext.data.HttpProxy({??? ??????????????url:?"http://www.example.com/test.php",?? ??????????????timeout...
分类:
Web程序 时间:
2015-05-07 20:34:11
阅读次数:
155
Problem StatementYou are a goblin miner. Your job is to mine gold.Picture yourself located in a mine. The mine can be seen as a rectangular grid of (N+1) times (M+1) cells. Rows are numbered 0 through...
分类:
其他好文 时间:
2015-05-07 16:41:22
阅读次数:
122
1、view与Widget 在UI中,最常用的就是list/grid/tree了(在Qt中,grid被称为table)。尤其是做那些数据库相关的程序,可能每个界面都要用到 list或grid。在Qt中,它们被归为item view class。有两种实现,一种叫item based,这些类名以wid...
分类:
其他好文 时间:
2015-05-07 15:52:30
阅读次数:
297