请问matlab中peaks函数的定义域是什么?如果输入peaks(35)就会和直输入peaks产生的图片的x轴和y轴的坐标州的区域不一样,那到底括号内的参数是改变什么了?是定义域还是……?如果不是定义域,那

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 01:15:27

请问matlab中peaks函数的定义域是什么?
如果输入peaks(35)就会和直输入peaks产生的图片的x轴和y轴的坐标州的区域不一样,那到底括号内的参数是改变什么了?是定义域还是……?如果不是定义域,那定义域是什么?

你可以自己用命令
help peaks查看啊
------------------------------------------------------
peaks is a function of two variables, obtained by translating and scaling Gaussian distributions, which is useful for demonstratingmesh, surf, pcolor, contour, and so on.
Z = peaks; returns a 49-by-49 matrix.
Z = peaks(n); returns an n-by-n matrix.
Z = peaks(V); returns an n-by-n matrix, where n = length(V).
Z = peaks(X,Y); evaluates peaks at the given X and Y (which must be the same size) and returns a matrix the same size.
------------------------------------------------
括号内是矩阵的规模