Community Profile

photo

埃博拉酱


Last seen: Today Active since 2019

Statistics

All
  • Knowledgeable Level 1
  • Thankful Level 3
  • Puzzler
  • Commenter
  • 5-Star Galaxy Level 2
  • GitHub Submissions Level 3
  • First Answer
  • Explorer
  • First Review
  • Personal Best Downloads Level 2
  • Leader
  • Speed Demon

View badges

Content Feed

View by

Problem


Is the number of 1s in a binary integer odd or even?
Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

22 days ago | 1 | 12 solvers

Problem


Ambiguous concatenation
Give two expressions that can have different meaning inside/outside a concatenation expression.

3 months ago | 0 | 3 solvers

Solved


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

5 months ago

Solved


Curry a function handle
From Wikipedia, Currying: In mathematics and computer science, currying is the technique of converting a function that takes mu...

7 months ago

Problem


Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...

7 months ago | 0 | 4 solvers

Solved


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

7 months ago

Solved


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

7 months ago

Problem


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

7 months ago | 1 | 17 solvers

Solved


Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

7 months ago

Solved


Undocumented MATLAB tricks No. 1 - Save a function-returned struct
Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...

1 year ago

Problem


Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

1 year ago | 0 | 2 solvers

Problem


Undocumented MATLAB tricks No. 1 - Save a function-returned struct
Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...

1 year ago | 0 | 5 solvers

Solved


Dealfun (1.0)
*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...

1 year ago

Solved


Find area of rectangle

2 years ago

Solved


Find area of triangle

2 years ago

Problem


Volatile array in parfor and for

2 years ago | 0 | 3 solvers

Problem


Convert sorting indices to ranks

2 years ago | 1 | 11 solvers

Solved


Restricted Subtraction v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

2 years ago

Solved


Find Logic 21

2 years ago

Solved


Restricted Multiplication v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

2 years ago

Solved


tic tac toe
Solved ticTacToe

2 years ago

Solved


Algorithmic Trading - 4 (two thresholds)
This is the fourth of a series of problems on quant trading. It builds on earlier problems 45776, 45860, and 45884 *Goal* ...

2 years ago

Solved


Algorithmic Trading - 3 (short selling and leverage)
This is the third of a series of problems on quant trading. It builds on earlier problems 45776 and 45860 <https://www.mathwo...

2 years ago

Solved


Algorithmic Trading - 2 (optimize Calmar Ratio)
This is the second of a series of problems on quant trading. It builds on earlier problem 45776 <https://www.mathworks.com/matla...

2 years ago

Problem


arrayfun bomb

2 years ago | 1 | 3 solvers

Problem


Magic array teasing num2cell

2 years ago | 0 | 1 solver

Load more