필터 지우기
필터 지우기

How to do loop for frame in Matlab?

조회 수: 2 (최근 30일)
z m
z m 2017년 11월 22일
편집: Walter Roberson 2017년 11월 22일
Hello,
I have message size 8 bits and wants to do for 128 bits , so 16 frame size each has 8 bits. I use this loop for frame size:
message= rand(1,8);
for f = 1:16
....
...
end
Is this correct loop for message = 128 bits as output ? I got same polt for 8 bits and 128 bits, is it correct? if no, please how to do it?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 22일
편집: Walter Roberson 2017년 11월 22일
nrframe = 16;
framesize = 8;
message = randi([0 1], nframe, framesize);
for f = 1 : nframe
this_frame = message(f, :);
out_frame = xor(this_frame, ...)
...
end

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by