program repeat the highest value each time I run it
Show older comments
Hi all, why does program repeat the highest value each time I run it? Note: When I choose a higher value the program run correctly
The issue in these lines
promt4 = 'Please enter the number of bits: ';
N = input(promt4); %Number of bits
if N <= 128
Nb = N;
else
promt5 = 'Please enter the correct number of bits between 0-128: ';
N = input (promt5);
Nb = N;
end
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!