Replacing the LSB value

조회 수: 1 (최근 30일)
kash
kash 2012년 11월 8일
I have some values such as
p=0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
p1=1 1 1 1 1
now i want to replace last five bits of p by p1
so output is
p=0 0 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1
i need to do it by using genetic algorithm plz provide me assistance

답변 (1개)

Jan
Jan 2012년 11월 8일
No, this is not a job for a genetic algorithm.
p = [0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0];
p1 = [1 1 1 1 1];
p(end-4:end) = p1;
  댓글 수: 1
kash
kash 2012년 11월 8일
jaN for example if valus is 00001000=8,for LSB layer 3,message bit 1,output is 00001100=12,after applying GA we get 00000111=7,so after applying GA I get closer value to 8.like same way i want to apply for above process,
please help

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by