matlab help

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]
Sign In or Register to comment.

Howdy, Stranger!

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

Categories