1sem, 7 work in octave
This commit is contained in:
parent
3038462693
commit
b68323cca1
5 changed files with 127 additions and 0 deletions
3
1sem/octave/07/print_num_code.m
Normal file
3
1sem/octave/07/print_num_code.m
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function [s] = print_num_code(n, len)
|
||||
s = dec2bin(mod(n, 2^len), len);
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue