Please help me fix the count for the nested for-loop
古いコメントを表示
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 件のコメント
madhan ravi
2018 年 11 月 30 日
編集済み: madhan ravi
2018 年 11 月 30 日
count value?
Irwin2020
2018 年 11 月 30 日
採用された回答
その他の回答 (1 件)
Dennis
2018 年 12 月 5 日
Your addHexNumber function actually does not work correctly. I think you need to change
if bothSum > 16
to
if bothSum > 15 % or >=16
カテゴリ
ヘルプ センター および File Exchange で Profile and Improve Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!