我谨以
至今,我制作了一张图表,显示符号编号点(左)和平等点(右)之间的连接:alt 文本http://img29.imageshack.us/img29/9780/ldpc.jpg 并且希望从象征到平等节点和后方的亲密点。 该数字采用以下方法计算: 因此,我要在这里做的是,添加另一种方法,即起点(x和 y)和终点站,作为论点,并从一开始即按照所显示的路线结束和返回旅行圈(dot)。 如果你能显示解决办法,或建议对口腔模拟作任何有益的指导,我将不胜感激。 谢谢!function drawVertices(H)
hold on;
nodesCount = size(H);
parityNodesCount = nodesCount(1);
symbolNodesCount = nodesCount(2);
symbolPoints = zeros(symbolNodesCount, 2);
symbolPoints(:, 1) = 0;
for i = 0 : symbolNodesCount - 1
ji = symbolNodesCount - i;
scatter(0, ji)
symbolPoints(i + 1, 2) = ji;
end;
parityPoints = zeros(parityNodesCount, 2);
parityPoints(:, 1) = 10;
for i = 0 : parityNodesCount - 1
ji = parityNodesCount - i;
y0 = symbolNodesCount/2 - parityNodesCount/2;
scatter(10, y0 + ji)
parityPoints(i + 1, 2) = y0 + ji;
end;
axis([-1 11 -1 symbolNodesCount + 2]);
axis off
%connect vertices
d = size(H);
for i = 1 : d(1)
for j = 1 : d(2)
if(H(i, j) == 1)
plot([parityPoints(i, 1) symbolPoints(j, 1)], [parityPoints(i, 2) symbolPoints(j, 2)]);
end;
end;
end;
I m trying to write a little test page that circulates images through a window (see image). I have colored boxes inside a table (gray border), with each box being a element. <table id="boxes" ...