matlab help - Programmers Heaven

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

# matlab help

Posts: 4Member
Hi everyone

I wrote this code and the result is some complex circles but I need to specify the intersection (solid colored) please help
[code]
function GG=gercirc()
clc;
x=[-4:0.1:4];
y=[-4:0.1:4];
[X,Y]=meshgrid(x,y);
hold on
axis equal
axis([-1 5 -3 3])
z1=zeros(1,2);
z2=z1;
z3=z1;
z4=z1;
z5=z1;
Zm=z1;

Z1=abs(X+i*Y-2)-abs(2);
Z2=abs(X+i*Y-2)-abs(1.24698);
Z3=abs(X+i*Y-1)-abs(.80194);
Z4=abs(X+i*Y-1)-abs(1.5096*i);
Z5=abs(X+i*Y-2)-abs(1.34236*i);

contour(X,Y,Z1,[0 0],'Color','r','LineWidth',2);
contour(X,Y,Z2,[0 0],'Color','b','LineWidth',2);
contour(X,Y,Z3,[0 0],'Color','g','LineWidth',2);
contour(X,Y,Z4,[0 0],'Color','y','LineWidth',2);
contour(X,Y,Z5,[0 0],'Color','k','LineWidth',2);

set(l3,'LineStyle',':','LineWidth',3)
set(l2,'LineStyle','-.','LineWidth',3)

GG=' ';[/code]