请问如何用matlab画椭圆曲线并且得到椭圆曲线点的分布图???我写了来两个程序,但是运行不对

画图程序:function ec*eccmaking(a,b)for x=-2:0.01:2; m=x.^3+a*x+b; if m>=0 plot(x,sqrt(m),✀-✀); hold on plot(x,-sqrt(m),✀-✀); hold on endend求分布点程序:function doteccticfor j=0:1:10; if mod(j^2,11)**mod(i^3+i+6,11) plot(j,i,✀*✀) hold on endendendtoc错误提示:Missing variable or function.请指教!!!
2026年09月22日 18:49
有1个网友回答
网友(1):

你的第一行是要干嘛
function ec*eccmaking(a,b)

哪有这么写函数的
function output = myfunctionName(input1,input2)
end