can any one provide the concatenation of logical bits

조회 수: 1 (최근 30일)
lingamallu srinivas
lingamallu srinivas 2019년 11월 18일
댓글: lingamallu srinivas 2019년 11월 18일
Dear Sir / madam,
I wrote the program in this manner
clc
clear all
close all
a_b=1;
a_b=dec2bin(a_b,4);
a=a_b(1);b=a_b(2);c=a_b(3);d=a_b(4);
p=a;
q=xor(((~a)&b),(a&c));
r=xor(q,d);
s_1=xor((a&b),((~a)&c));
s=xor(s_1,d);
could you please give me a suggestion to concatenate the logical bits of p,q,r,s or pass the the logical bits of p,q,r,s in another variable.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 18일
편집: KALYAN ACHARJYA 2019년 11월 18일
"could you please give me a suggestion to concatenate the logical bits of p,q,r,s"
result=[logical(p),q,r,s]

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by