求助!在有多个参数时如何绘图?
maple吧
全部回复
仅看楼主
level 1
比如y=a*x^2+b*x,其中x是自变量,a,b是参数,想看在a,b变化时y的图像如何变化,请问应该怎样写?就是类似animate那样,但animate好像只能有一个参数。求助!多谢!
2015年04月25日 09点04分 1
level 2
%matlab: code
for i=1:10000
x=linspace(-1000,1000,1000000);
a=rand(1);
b=rand(1);
y=a.*x.^2+b.*x;
plot(x,y)
end
2015年05月02日 10点05分 2
level 6
2015年05月30日 20点05分 3
1