楼主: xuning5176
1671 0

[学习分享] Matlab peaks 两个变量的样本函数 [推广有奖]

  • 11关注
  • 9粉丝

已卖:779份资源

讲师

87%

还不是VIP/贵宾

-

威望
0
论坛币
3812 个
通用积分
15.5361
学术水平
5 点
热心指数
3 点
信用等级
2 点
经验
4031 点
帖子
212
精华
0
在线时间
802 小时
注册时间
2009-10-13
最后登录
2025-5-28

楼主
xuning5176 发表于 2013-4-5 15:45:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
PEAKS  A sample function of two variables.
    PEAKS is a function of two variables, obtained by translating and
    scaling Gaussian distributions, which is useful for demonstrating
    MESH, SURF, PCOLOR, CONTOUR, etc.
    There are several variants of the calling sequence:

        Z = PEAKS;
        Z = PEAKS(N);
        Z = PEAKS(V);
        Z = PEAKS(X,Y);

        PEAKS;
        PEAKS(N);
        PEAKS(V);
        PEAKS(X,Y);

        [X,Y,Z] = PEAKS;
        [X,Y,Z] = PEAKS(N);
        [X,Y,Z] = PEAKS(V);

    The first variant produces a 49-by-49 matrix.
    The second variant produces an N-by-N matrix.
    The third variant produces an N-by-N matrix where N = length(V).
    The fourth variant evaluates the function at the given X and Y,
    which must be the same size.  The resulting Z is also that size.

    The next four variants, with no output arguments, do a SURF
    plot of the result.

    The last three variants also produce two matrices, X and Y, for
    use in commands such as PCOLOR(X,Y,Z) or SURF(X,Y,Z,DEL2(Z)).

    If not given as input, the underlying matrices X and Y are
        [X,Y] = MESHGRID(V,V)
    where V is a given vector, or V is a vector of length N with
    elements equally spaced from -3 to 3.  If no input argument is
    given, the default N is 49.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:MATLAB matla atlab Peak Lab function obtained sequence

金融爱好者。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-17 04:09