필터 지우기
필터 지우기

how to write algorithm for code?

조회 수: 3 (최근 30일)
ankanna
ankanna 2021년 3월 22일
댓글: Walter Roberson 2021년 4월 11일
node = 3;
Link = (node-1)*node/2
NN = toeplitz(Link+1:-1:2);
mask = logical(fliplr(diag(ones(1,Link-1),-1)));
NN(mask) = 1;
for c = 0:2^Link-1
out = bitget(c, NN)
end
format long g
lamda = 0.7;
bits = dec2bin(0:2^node-1)-'0';
nl = sum(bits,2);
nu = node-nl;
P = lamda.^nl .* (1-lamda).^nu;
P(1:8)
[minP, minidx] = min(P)
bits(minidx,:)
[maxP, maxidx] = max(P)
bits(maxidx,:)
please help me to write algorithm
  댓글 수: 5
ankanna
ankanna 2021년 4월 10일
How to add reliability ri=0.9 to this. Please help me to generate this code.
Walter Roberson
Walter Roberson 2021년 4월 11일
Reliability does not fit with that code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by