Why in my pc showing correct but not in this
@Sumit, you are probably using a function from a toolbox (e.g. statistics toolbox) that is not available to Cody.
http://onlinestatbook.com/2/probability/permutations.html
The test suite throws errors where but I get correct answers when I run.
function y = fcn(n,k)
y = size(combntns(1:n,k),1);
end
Let me import my Statistics Toolbox!
;)
given 3 sides, find area of this triangle
683 Solvers
Convert a numerical matrix into a cell array of strings
469 Solvers
MATCH THE STRINGS (2 CHAR) very easy
251 Solvers
Fahrenheit to Celsius converter
361 Solvers
370 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!