Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I create an ellipse in matlab using STREL command?
When I execute the bellow code I just have a white plane.

a=zeros(300,400);
a(150,200)=1;
b=strel('ball',5,5,0);
c=imdilate(a,b);
imshow(c)

when I use the command imshow(c,[]), or imagesc(c) then I have a ball shape as the output. kindly tell me how can I creat an ellipse.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900