Please help me fix the count for the nested for-loop
Show older comments
function [ result ] = Clockregister01( R,count )
clc
for j = 1:count
for i = 1: size(RN,1)-1
% RN(i,1:size(RN,2)) = addHexNumber(RN(i,1:size(RN,2)),RN(i+1,1:size(RN,2)))
RN(i) = addHexNumber(RN(i),RN(i+1))
end
end
result = RN;
end
2 Comments
madhan ravi
on 30 Nov 2018
Edited: madhan ravi
on 30 Nov 2018
count value?
Irwin2020
on 30 Nov 2018
Accepted Answer
More Answers (1)
Dennis
on 5 Dec 2018
Your addHexNumber function actually does not work correctly. I think you need to change
if bothSum > 16
to
if bothSum > 15 % or >=16
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!