Y undefined in complex number c = x+i*y
古いコメントを表示
Hey :)
When I execute this code, the interpreter complains about y in the complex number c. I'm stuck :( Does anybody know the answer?
function m = mandelbrot(x,y)
nMax = 1000;
n=0;
z = 0;
c = x+i*y;
for n = [0:nMax]
z = z**2 + c ;
endfor
if abs(z)>2
m=1;
else
m=0;
endif
end
採用された回答
その他の回答 (1 件)
Martial
2014 年 1 月 16 日
0 投票
1 件のコメント
Mischa Kim
2014 年 1 月 16 日
That's what I thought. Welcome to MATLAB, Martial.
カテゴリ
ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!