[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is it correct to build a tree?
From: |
slaythemall |
Subject: |
Is it correct to build a tree? |
Date: |
Wed, 15 Jun 2016 11:54:56 -0700 (PDT) |
function choinka(n)
if n > 0
x = [];
y = [];
k = 0;
for i = 1:n
for j = 1:i
k = k + 1;
x(k) = -j;
y(k) = i;
end
end
plot(x,y,'k*');
axis([-(n+1) 0 0 n+1]);
title("Choinka");
end
endfunction
--
View this message in context:
http://octave.1599824.n4.nabble.com/Is-it-correct-to-build-a-tree-tp4677739.html
Sent from the Octave - General mailing list archive at Nabble.com.