| 查看: 1131 | 回复: 4 | ||||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||||
qdwang木虫 (小有名气)
|
[交流]
【求助】matlab 算法求教
|
|||
| 对一数组,其中的元素低于某一常数值a时,使其归0.使用哪什么语句啊。。。我是新人,谢谢。 |
» 收录本帖的淘帖专辑推荐
source |
» 猜你喜欢
交叉科学部支持青年基金,对三无青椒是个机会吗?
已经有3人回复
国家级人才课题组招收2026年入学博士
已经有5人回复
Fe3O4@SiO2合成
已经有6人回复
青年基金C终止
已经有4人回复
青椒八年已不青,大家都被折磨成啥样了?
已经有7人回复
为什么nbs上溴 没有产物点出现呢
已经有10人回复
救命帖
已经有11人回复
招博士
已经有5人回复
26申博求博导推荐-遥感图像处理方向
已经有4人回复
限项规定
已经有7人回复
» 本主题相关价值贴推荐,对您同样有帮助:
MATLAB经典算法程序
已经有531人回复
求教origin拟合简单的渗流方程(又称逾渗方程),做复合材料的应该会遇到吧
已经有20人回复
求回归方程参数估计的最优化算法matlab代码
已经有9人回复
关于MATLAB和OpenCV对相同算法的运算速度对比问题
已经有20人回复
【求助】多目标pso算法的MATLAB程序
已经有3人回复
【求助】matlab 遗传算法工具箱绘图命令是什么?
已经有6人回复
【求助】求教matlab解非线性方程组
已经有9人回复
qdwang
木虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 2263.9
- 散金: 33
- 帖子: 198
- 在线: 93.5小时
- 虫号: 446319
- 注册: 2007-10-29
- 性别: GG
- 专业: 催化化学
3楼2010-10-19 20:17:35
change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
2楼2010-10-19 19:31:12
qdwang
木虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 2263.9
- 散金: 33
- 帖子: 198
- 在线: 93.5小时
- 虫号: 446319
- 注册: 2007-10-29
- 性别: GG
- 专业: 催化化学
4楼2010-10-20 10:03:09
lidaxue
木虫 (正式写手)
之乎者也
- 应助: 10 (幼儿园)
- 金币: 1952.1
- 散金: 612
- 红花: 2
- 帖子: 527
- 在线: 856.1小时
- 虫号: 259962
- 注册: 2006-06-17
- 性别: GG
- 专业: 几何学
★
nono2009(金币+1):鼓励应助 2010-10-30 06:50:16
qdwang(金币+3): 谢谢你的认真讲解 2011-04-26 09:13:26
nono2009(金币+1):鼓励应助 2010-10-30 06:50:16
qdwang(金币+3): 谢谢你的认真讲解 2011-04-26 09:13:26
|
参见 matlab的 help read ++++++++ >> help read --- help for mmreader/read --- READ Read a multimedia file. VIDEO = READ(OBJ) reads in video frames from the associated file. VIDEO is an H x W x B x F matrix where H is the image frame height, W is the image frame width, B is the number of bands in the image (e.g. 3 for RGB), and F is the number of frames read in. The default behavior is to read in all frames unless an index is specified. The type of data returned is always UINT8 data representing RGB24 video frames. VIDEO = READ(...,INDEX) performs the same operation, but reads only the frame(s) specified by INDEX, where the first frame number is 1. INDEX can be a single index, or a two-element array representing an index range of the video stream. For example: VIDEO = READ(OBJ); % Read in all video frames. VIDEO = READ(OBJ, 1); % Read only the first frame. VIDEO = READ(OBJ, [1 10]); % Read the first 10 frames. If any invalid INDEX is specified, MATLAB throws an error. Example: % Construct a multimedia reader object associated with file 'xylophone.mpg' with % user tag set to 'myreader1'. readerobj = mmreader('xylophone.mpg', 'tag', 'myreader1'); % Read in all video frames. vidFrames = read(readerobj); % Get the number of frames. numFrames = get(readerobj, 'numberOfFrames'); % Create a MATLAB movie struct from the video frames. for k = 1 : numFrames mov(k).cdata = vidFrames(:,:,:,k); mov(k).colormap = []; end % Create a figure hf = figure; % Resize figure based on the video's width and height set(hf, 'position', [150 150 readerobj.Width readerobj.Height]) % Playback movie once at the video's frame rate movie(hf, mov, 1, readerobj.FrameRate); See also audiovideo, movie, mmreader, mmreader/get, mmreader/set, mmfileinfo. Overloaded methods: vdspdebug/read eclipseide/read ghsmulti/read daitem/read dagroup/read rfckt.read vrjoystick/read ccsdebug/read wptree/read wdectree/read dtree/read Reference page in Help browser doc mmreader/read >> |

5楼2010-10-29 09:22:31













回复此楼