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

lixixiao2

Í­³æ (СÓÐÃûÆø)

[ÇóÖú] matlab surfº¯ÊýµÄʹÓÃ

y£¨i£¬j£©ÊÇÒ»¸ö600*3600µÄ¾ØÕó£¬ÒѾ­Çó½â³öÀ´ÁË£¬Ï£ÍûÓÃsurfº¯Êý£¬½«i£¬j×÷Ϊº¯ÊýyµÄÁ½¸ö×Ô±äÁ¿±íʾ³ÉͼÐÎÊä³ö³öÀ´£¬Çó´óÉñÏàÖú¡£
ÕâÊÇÎÒдµÄÓï¾ä£º
[i,j]=meshgrid(1:600,1:3600);
for i=1:600
    for j=1:3600
z(i,j)=y(i,j);
    end
end
surf(i,j,z)
µ«´íÎóºÜ¶à£¬ÔËÐÐmatlabÌáʾ£º
??? Error using ==> surf at 78
Data dimensions must agree.

Error in ==> DEEuler at 73
surf(i,j,z)

[ Last edited by lixixiao2 on 2012-10-17 at 10:36 ]
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

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

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

navolo

ľ³æ (ÕýʽдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

ÄãµÄ¾ØÕóάÊý²»Ò»Ö£¬
¹ØÓÚsurfÃüÁîÓëmeshʹÓÃÀàËÆ£¬Äã¿ÉÒÔ¿´Ï°ïÖúhelp surf

help surf
SURF   3-D colored surface.
    SURF(X,Y,Z,C) plots the colored parametric surface defined by
    four matrix arguments.  The view point is specified by VIEW.
    The axis labels are determined by the range of X, Y and Z,
    or by the current setting of AXIS.  The color scaling is determined
    by the range of C, or by the current setting of CAXIS.  The scaled
    color values are used as indices into the current COLORMAP.
    The shading model is set by SHADING.

    SURF(X,Y,Z) uses C = Z, so color is proportional to surface height.

    SURF(x,y,Z) and SURF(x,y,Z,C), with two vector arguments replacing
    the first two matrix arguments, must have length(x) = n and
    length(y) = m where [m,n] = size(Z).  In this case, the vertices
    of the surface patches are the triples (x(j), y(i), Z(i,j)).
    Note that x corresponds to the columns of Z and y corresponds to
    the rows.

    SURF(Z) and SURF(Z,C) use x = 1:n and y = 1:m.  In this case,
    the height, Z, is a single-valued function, defined over a
    geometrically rectangular grid.

    SURF(...,'PropertyName',PropertyValue,...) sets the value of the
    specified surface property.  Multiple property values can be set
    with a single statement.

    SURF(AX,...) plots into AX instead of GCA.

    SURF returns a handle to a surface plot object.

    AXIS, CAXIS, COLORMAP, HOLD, SHADING and VIEW set figure, axes, and
    surface properties which affect the display of the surface.

    Backwards compatibility
    SURF('v6',...) creates a surface object instead of a surface plot
    object for compatibility with MATLAB 6.5 and earlier.
   
    See also surfc, surfl, mesh, shading.

    Overloaded functions or methods (ones with the same name in other directories)
       help sweepset/surf.m

    Reference page in Help browser
       doc surf
2Â¥2012-10-30 22:07:50
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

wurongjun

ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï
lixixiao2: ½ð±Ò+3, ¡ï¡ï¡ïºÜÓаïÖú 2012-11-02 09:39:54
ûÓдóµÄ´íÎó!
²»¹ýÊÇ:i,jÕâÁ½¸ö±äÁ¿ÒѾ­ÔÚÖ¯ÍøÊ±ÓùýÁË,ºóÃæÑ­»·ÔÙÓþͳö´íÁË!
           Èç¹ûY(i,j)ÖªµÀÖ±½ÓÓÃsuf(i,j,y)¾Í¿ÉÒÔ,²»Óø³Öµ¸øz!
ÉÆ¶ñµ½Í·ÖÕÓб¨,È˼äÕýµÀÊDz×É£.
3Â¥2012-10-30 22:25:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zsy312

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

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
lixixiao2: ½ð±Ò+7, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2012-11-05 16:55:29
CODE:
[i,j]=meshgrid(1:600,1:3600);
for i=1:600
    for j=1:3600
z(i,j)=y(i,j);
    end
end
i=1:600;
j=1:3600;
surf(i,j,z)

4Â¥2012-11-04 11:45:55
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ lixixiao2 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 08¹¤¿Æ£¬295£¬½ÓÊÜ¿çרҵµ÷¼Á +4 lmnlzy 2026-03-31 4/200 2026-03-31 15:25 by Î÷¾©Ñ§ÔºÕаì
[¿¼ÑÐ] Ò»Ö¾Ô¸211£¬335·Ö£¬0856£¬Çóµ÷¼ÁԺУºÍµ¼Ê¦ +10 Çã____Ïô 2026-03-27 11/550 2026-03-31 14:32 by fmesaito
[¿¼ÑÐ] ÍÁľ304Çóµ÷¼Á +3 ¶¥¼¶²Á²Á 2026-03-31 3/150 2026-03-31 13:59 by Î÷¾©Ñ§ÔºÕаì
[¿¼ÑÐ] 272Çóµ÷¼Á£¬½ÓÊÜ¿çרҵµ÷¼Á£¡ +3 ÏÐÓ㬠2026-03-31 3/150 2026-03-31 13:00 by Ìæ´úÆ·000
[¿¼ÑÐ] Ò»Ö¾Ô¸±±»¯085600²ÄÁÏר˶275|ÓÐÎÄÕÂרÀû£üÇóµ÷¼Á +15 Micky11223 2026-03-25 16/800 2026-03-31 12:15 by oooqiao
[¿¼ÑÐ] Ò»Ö¾Ô¸Õã½­´óѧ¹¤¿Æ¶¯Á¦¹¤³Ì370,ÊýÒ»121,רҵ¿Î135£¬ÏÖÔÚÄÜÈ¥ÄÄÀï +3 080700µ÷¼Á 2026-03-30 4/200 2026-03-31 12:00 by KLMY666
[¿¼ÑÐ] ²ÄÁÏ¿ÆÑ§Ó빤³Ìµ÷¼Á +12 ÉîVËÞÉá°É 2026-03-30 13/650 2026-03-31 11:26 by ²»³Ôô~µÄ؈
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤µ÷¼ÁÒ»Ö¾Ô¸´óÁ¬º£ÊÂ085600£¬349 +6 ³ÔµÄ²»ÉÙ 2026-03-30 6/300 2026-03-31 04:17 by fmesaito
[¿¼ÑÐ] 085601²ÄÁϹ¤³ÌÕÒµ÷¼Á +17 oatmealR 2026-03-29 18/900 2026-03-30 19:21 by Wang200018
[¿¼ÑÐ] Çóµ÷¼Á +10 ¼Ò¼Ñ¼Ñ¼Ñ¼Ñ¼Ñ 2026-03-29 10/500 2026-03-30 18:34 by 544594351
[¿¼ÑÐ] Çóµ÷¼Á323²ÄÁÏÓ뻯¹¤ +10 1124361 2026-03-24 10/500 2026-03-30 16:26 by 690616278
[¿¼ÑÐ] 303Çóµ÷¼Á +7 DLkz1314. 2026-03-30 7/350 2026-03-30 16:05 by shuang5186
[¿¼ÑÐ] 324Çóµ÷¼Á +9 hanamiko 2026-03-26 11/550 2026-03-30 14:27 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ÄϺ½ 335·Ö | 0856 | GPA 4.07 | ÓпÆÑо­Àú +8 cccchenso 2026-03-29 8/400 2026-03-29 23:53 by ÎÒÊÇС¿µ
[¿¼ÑÐ] ѹ¹ú¼ÒÒ»ÇøÏߣ¬Çóµ¼Ê¦ÊÕÁô£¬Óж÷±ØÐ»£¡ +7 ÃÔÈ˵Ĺþ¹þ 2026-03-28 7/350 2026-03-28 16:47 by ´ß»¯´ó°×
[¿¼ÑÐ] 394Çóµ÷¼Á +3 ºÃʶàÄ¥¾²ºò¼ÑÒ 2026-03-26 5/250 2026-03-28 14:24 by ÌÆãå¶ù
[¿¼ÑÐ] 308Çóµ÷¼Á +7 īīĮ 2026-03-27 7/350 2026-03-28 07:43 by ÈÈÇéɳĮ
[¿¼ÑÐ] Ò»Ö¾Ô¸ÄÏʦ´ó0703»¯Ñ§ 275Çóµ÷¼Á +4 RipcordÉϰ¶ 2026-03-27 4/200 2026-03-27 17:00 by zhyzzh
[¿¼ÑÐ] µ÷¼Á +4 èÖèÖyoyo 2026-03-26 4/200 2026-03-26 20:43 by fmesaito
[¿¼ÑÐ] »¯Ñ§µ÷¼ÁÒ»Ö¾Ô¸ÉϺ£½»Í¨´óѧ336·Ö-±¾¿ÆÉϺ£211 +4 СÓã°®Óлú 2026-03-25 4/200 2026-03-26 10:19 by aa331100
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û