±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 1168  |  »Ø¸´: 4

qdwang

ľ³æ (СÓÐÃûÆø)

[½»Á÷] ¡¾ÇóÖú¡¿matlab Ëã·¨Çó½Ì

¶ÔÒ»Êý×飬ÆäÖеÄÔªËØµÍÓÚijһ³£ÊýÖµaʱ£¬Ê¹Æä¹é0.ʹÓÃÄÄʲôÓï¾ä°¡¡£¡£¡£ÎÒÊÇÐÂÈË£¬Ð»Ð»¡£
»Ø¸´´ËÂ¥

» ÊÕ¼±¾ÌûµÄÌÔÌûר¼­ÍƼö

source

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

change0618

Ìú¸Ëľ³æ (ÖøÃûдÊÖ)

·½ÕÉ´óʦ

¡ï
qdwang(½ð±Ò+2):лл¡£ 2010-10-19 20:16:32
ctgu_zheng(½ð±Ò+1):»¶Ó­³£À´½»Á÷ 2010-10-21 22:53:24
>> a=1:8

a =

     1     2     3     4     5     6     7     8

>> a(a<4)=0

a =

     0     0     0     4     5     6     7     8
2Â¥2010-10-19 19:31:12
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

qdwang

ľ³æ (СÓÐÃûÆø)

ÒýÓûØÌû:
Originally posted by change0618 at 2010-10-19 19:31:12:
>> a=1:8

a =

     1     2     3     4     5     6     7     8

>> a(a<4)=0

a =

     0     0     0     4     5     6     7     8

ÔõôÈÃmatlabÒ»´Î¶ÁÈë¶à×ématÐ;ØÕó»òÊý×é°¡¡£ÅóÓÑ¡£Ð»Ð»¡£
3Â¥2010-10-19 20:17:35
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

qdwang

ľ³æ (СÓÐÃûÆø)

ÔõôÈÃmatlabÒ»´Î¶ÁÈë¶à×ématÐ;ØÕó»òÊý×é°¡¡£ÅóÓÑ¡£Ð»Ð»¡£
4Â¥2010-10-20 10:03:09
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

lidaxue

ľ³æ (ÕýʽдÊÖ)

Ö®ºõÕßÒ²

¡ï
nono2009(½ð±Ò+1):¹ÄÀøÓ¦Öú 2010-10-30 06:50:16
qdwang(½ð±Ò+3): ллÄãµÄÈÏÕæ½²½â 2011-04-26 09:13:26
ÒýÓûØÌû:
Originally posted by qdwang at 2010-10-20 10:03:09:
ÔõôÈÃmatlabÒ»´Î¶ÁÈë¶à×ématÐ;ØÕó»òÊý×é°¡¡£ÅóÓÑ¡£Ð»Ð»¡£

²Î¼û 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

>>
Comeon£¡
5Â¥2010-10-29 09:22:31
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ qdwang µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 08600ÉúÎïÓëÒ½Ò©-327 +4 18755400796 2026-04-05 4/200 2026-04-05 20:05 by barlinike
[¿¼ÑÐ] ¼ÆËã»ú11408£¬286·ÖÇóµ÷¼Á +7 ľ×ÓÄî•„ 2026-04-05 7/350 2026-04-05 19:02 by chy09050039
[¿¼ÑÐ] 315Çóµ÷¼Á +13 ÐÀϲ777 2026-04-04 14/700 2026-04-05 18:48 by liuying2007
[¿¼ÑÐ] 367Çóµ÷¼Á +3 л28 2026-03-30 3/150 2026-04-05 13:27 by huangmoli
[¿¼ÑÐ] Çóµ÷¼Á +10 ÐܶþÏëÉϰ¶ 2026-04-04 10/500 2026-04-05 08:09 by qlm5820
[¿¼ÑÐ] 288»·¾³×¨Ë¶,Çóµ÷²ÄÁÏ·½Ïò +13 lllllos 2026-04-04 14/700 2026-04-04 23:34 by lqwchd
[¿¼ÑÐ] ¿É¿çרҵµ÷¼Á +3 ÖÜµÄµÃµØ 2026-04-04 6/300 2026-04-04 22:21 by barlinike
[¿¼ÑÐ] Çóµ÷¼Á +3 ffyyu 2026-04-02 3/150 2026-04-04 19:03 by À¶ÔÆË¼Óê
[¿¼ÑÐ] ¿¼Ñе÷¼Á +4 zybz³å³å³å 2026-04-03 6/300 2026-04-04 13:08 by zybz³å³å³å
[¿¼ÑÐ] Ò»Ö¾Ô¸Äϲý´óѧ324Çóµ÷¼Á +9 hanamiko 2026-03-30 9/450 2026-04-04 11:04 by Öí»á·É
[¿¼ÑÐ] ²ÄÁÏרҵ383Çóµ÷¼Á +8 ¹ùÑôÑôÑô³É 2026-04-03 8/400 2026-04-04 10:29 by Rednal.
[¿¼ÑÐ] 336Çóµ÷¼Á +8 kiyy 2026-04-01 8/400 2026-04-03 19:41 by lijunpoly
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©½»Í¨´óѧ²ÄÁϹ¤³Ì×Ü·Ö358 +4 cs0106 2026-04-03 4/200 2026-04-03 13:41 by °ÙÁéͯ888
[¿¼ÑÐ] Ò»Ö¾Ô¸°²»Õ´óѧ0817»¯Ñ§¹¤³ÌÓë¼¼Êõ£¬Çóµ÷¼Á +14 ÎÒ²»ÊÇÖ»Òò 2026-04-02 15/750 2026-04-03 09:49 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 312Çóµ÷¼Á +4 ÉÞÔÂÉ« 2026-04-02 5/250 2026-04-03 08:21 by fangshan711
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©¿Æ¼¼²ÄÁÏ¿ÆÑ§Ó빤³Ì288·Ö£¬Çóµ÷¼Á +14 Êdz½°¡ 2026-04-02 14/700 2026-04-02 21:10 by dongzh2009
[¿¼ÑÐ] 285Çóµ÷¼Á +14 AZMK 2026-04-02 14/700 2026-04-02 15:54 by ÉϾÅÌìÀ¿Ô£¨ºÃÔ
[¿¼ÑÐ] ²ÄÁÏרҵÇóµ÷¼Á +10 ÔÂÔÂÄñľ 2026-04-01 10/500 2026-04-02 12:57 by wxiongid
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +11 Ò»ÑùYWY 2026-03-31 11/550 2026-04-01 11:35 by wangjy2002
[¿¼ÑÐ] Çóµ÷¼Á +8 11ggg 2026-03-30 8/400 2026-03-31 13:56 by nanaliuyun
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û