Ramon Villamangca
Followers: 1 Following: 0
Learner and Math Enthusiast
Programming Languages:
C++, Java, Javascript, MATLAB, Ruby, Perl, Swift, Assembly
Spoken Languages:
English
C++, Java, Javascript, MATLAB, Ruby, Perl, Swift, Assembly
Spoken Languages:
English
Feeds
已回答
Project Euler, Lattice path - Problem 15
Project Euler Problem #15, is a combinatorial problem. if we mark going down as "D" and going the right as "R", the problem is r...
Project Euler, Lattice path - Problem 15
Project Euler Problem #15, is a combinatorial problem. if we mark going down as "D" and going the right as "R", the problem is r...
3 years 前 | 0
已回答
tail recursive function and wrapper function
The question is not about whether Matlab supports tail recursion. The question is to make a tail recursive function and wrapper ...
tail recursive function and wrapper function
The question is not about whether Matlab supports tail recursion. The question is to make a tail recursive function and wrapper ...
3 years 前 | 0
已回答
multiple digit number in to individual digits
a simple single line solution: >> num = 12345042117; >> arrayfun(@(x) mod(floor(num/10^x),10),floor(log10(num)):-1:0) ans =...
multiple digit number in to individual digits
a simple single line solution: >> num = 12345042117; >> arrayfun(@(x) mod(floor(num/10^x),10),floor(log10(num)):-1:0) ans =...
6 years 前 | 0
已回答
How can I count the occurrences of each element in a vector in MATLAB?
This is how I did it: numOccur = sum(arrayfun(@(x) x == elem,vec)) where 'elem', is the element to search in the given v...
How can I count the occurrences of each element in a vector in MATLAB?
This is how I did it: numOccur = sum(arrayfun(@(x) x == elem,vec)) where 'elem', is the element to search in the given v...
6 years 前 | 0