how to draw an ellipse matrix?
13 ビュー (過去 30 日間)
古いコメントを表示
m = 800;
n = 600;
im = zeros(800, 600);
y0 = 12;
x0 = 12;
a = randi(round(m/3));
b = randi(round(n/3));
c = max(a, b);
c1=0.1;
theta = 2*pi*rand(1);
color = 249;
color2 = 120;
disp(i)
im = ellipseMatrix(y0, x0, a, b, theta, im, color, color2, randi(2));
colormap(gray(256));
image(im)
2 件のコメント
Jan
2017 年 8 月 6 日
What is your question? What is the problem? What is "ellipseMatrix"? Do you mean the FileExchange submission http://www.mathworks.com/matlabcentral/fileexchange/17499-ellipsematrix-y0--x0--a--b--theta--im--c1--c2--pinterp-?
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!