在matlab中f(x,y)=(x/2).^2+(y/4).^2这样写对吗在matlab中这样写f(x,y)=(x/2).^2+(y/4).^2这样写对吗

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/30 00:53:35
在matlab中f(x,y)=(x/2).^2+(y/4).^2这样写对吗在matlab中这样写f(x,y)=(x/2).^2+(y/4).^2这样写对吗

在matlab中f(x,y)=(x/2).^2+(y/4).^2这样写对吗在matlab中这样写f(x,y)=(x/2).^2+(y/4).^2这样写对吗
在matlab中f(x,y)=(x/2).^2+(y/4).^2这样写对吗
在matlab中这样写f(x,y)=(x/2).^2+(y/4).^2这样写对吗

在matlab中f(x,y)=(x/2).^2+(y/4).^2这样写对吗在matlab中这样写f(x,y)=(x/2).^2+(y/4).^2这样写对吗
不对.因为Matlab的赋值是以数组形式储存.正确的写法为
f=(x(1)/2).^2+(x(2)//4).^2 式中x=x(1),y=x(2)