add octave 03 and 04
This commit is contained in:
parent
8fecab6dcf
commit
389e4c7dbd
8 changed files with 125 additions and 0 deletions
4
1sem/octave/03/sum_heads.m
Normal file
4
1sem/octave/03/sum_heads.m
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Функция считает кол-во выпавших орлов в логическом векторе r
|
||||
function [h] = sum_heads(r)
|
||||
h = sum(r ~= 1);
|
||||
endfunction
|
||||
Loading…
Add table
Add a link
Reference in a new issue