From: dhoniutp on
I also tried this

R= [A(: ,1),B(: ,1),C(:, 1),A(:, 1)]
S= [A(: ,2),B(: ,2),C(: ,2),D(:,2)]


for a= length (A)
plot (R(a,:),S(a,:))
end

but again it gives me only 1 triangle :(
From: Christopher on
dhoniutp <dhoniutp(a)yahoo.com> wrote in message <57395206.12454.1277276402157.JavaMail.root(a)gallium.mathforum.org>...
> I also tried this
>
> R= [A(: ,1),B(: ,1),C(:, 1),A(:, 1)]
> S= [A(: ,2),B(: ,2),C(: ,2),D(:,2)]
>
>
> for a= length (A)
> plot (R(a,:),S(a,:))
> end
>
> but again it gives me only 1 triangle :(

Not sure what your vectors A, B, C and D look like but I suspect it's to do with your for loop - unless it's just a typo.

try:

for a = 1:length(A)
plot(R(a,:),S(a,:));
hold on;
end
From: dhoniutp on
Dear Chris

I try this but again it gives only one triangle i.e. the 4rth one the rest of the first 3 triangles were not on the display. I think the hold on command should stop the first display but its not working:(

I want all the triangles in one display
From: dhoniutp on
Hi Chris

Thanks for the help. I sorted out the problem by your help Many Thanks