Edit:Replacing 5 bits in Binary value
1 次查看(过去 30 天)
显示 更早的评论
I have values
say A=[1056;1078]
B=[31;25];
i tried using
for i=1:2 C(n:n+numel(D)-1)=D; end
but not getting the answer,please assist
1 个评论
采纳的回答
Andrei Bobrov
2012-11-22
编辑:Andrei Bobrov
2012-11-22
A=[1056;1078]
B=[31;25];
C = decbin(A,11);
D = dec2bin(B,4);
n = 4;
C(:,n : n + size(D,2) - 1) = D
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!