How can I can I draw multiple circles with figure that have character into them

4 Ansichten (letzte 30 Tage)
Hello I made a Matlab project where I plotted two circles that represented electrical charges.
And i used this code
figure();
h=rectangle('Position',[xCn-a/2,yCn-a/2,a,a],'curvature',[1 1]);
set(h,'Facecolor',[0 0 0],'Edgecolor',[0 0 0]);
text(0.43,0.05,'-','Color','white','FontSize',30);
h=rectangle('Position',[xCp-a/2,yCp-a/2,a,a],'curvature',[1 1]);
set(h,'Facecolor',[1 0 0],'Edgecolor',[1 0 0]);
text(-0.6,0,'+','Color','white','FontSize',30);
How can I Draw 5 circles for each charge with their sign so it looks like this? I only need help for drwaing the circles ignore the blue arrows
Thanks for your answers

Antworten (1)

Image Analyst
Image Analyst am 24 Apr. 2022
Try viscircles() in the Image Processing Toolbox.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by