can any one provide the concatenation of logical bits
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!