关于ezplot:
If your function has additional parameters, for example k in myfun:
function z = myfun(x,y,k)
z = x.^k - y.^k - 1;
then you can use an anonymous function to specify that parameter:
ezplot(@(x,y)myfun(x,y,2))
今天无意中看到的帖子,下面借用花无月的那个程序,把中间的骨干曲线方程画出来了
function exaplot(e)
warning off all
for i=1:length(e)
hold on;
ezplot(@(s,A)myfun(s,A,e(i)),[0,3,0,7])
end
A=0:0.01:7;
s=sqrt(1+3/4*0.04*A.^2);%骨干曲线方程
plot(s,A,'r--');
function z = myfun(s,A,e)
z = (1/sqrt((1-s^2+3/4*0.04*A^2)^2+(2*e*s)^2))-A;