Feeds
문제를 풀었습니다
Pipeline - Variable-length Input
Design the |gt|(>) method of |function_handle| so that: >> 1 > @sin > @cos ans = 0.666366745392881 >> cos(sin(1...
대략 1개월 전
문제를 풀었습니다
Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.
거의 2년 전
문제
Integer vector optimal lossless deduplication
You're given an integer vector A, a Min scalar and a Max scalar. You can assume all elements in A are in [Min,Max] range, and nu...
거의 2년 전 | 2 | 솔버 수: 2
문제
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...
대략 2년 전 | 1 | 솔버 수: 21
문제
Ambiguous concatenation
Give two expressions that can have different meaning inside/outside a concatenation expression.
대략 2년 전 | 0 | 솔버 수: 4
문제를 풀었습니다
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
2년 초과 전
문제를 풀었습니다
Curry a function handle
From Wikipedia, Currying: In mathematics and computer science, currying is the technique of converting a function that takes mu...
2년 초과 전
문제
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...
2년 초과 전 | 0 | 솔버 수: 4
문제를 풀었습니다
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...
2년 초과 전
문제를 풀었습니다
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.
2년 초과 전
문제
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...
2년 초과 전 | 1 | 솔버 수: 19
문제를 풀었습니다
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 ...
2년 초과 전
문제를 풀었습니다
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...
3년 초과 전
문제
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 ...
3년 초과 전 | 0 | 솔버 수: 2
문제
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...
3년 초과 전 | 0 | 솔버 수: 5
문제를 풀었습니다
Dealfun (1.0)
*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...
3년 초과 전
문제를 풀었습니다
Restricted Subtraction v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...
대략 4년 전
문제를 풀었습니다
Restricted Multiplication v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...
대략 4년 전
문제를 풀었습니다
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* ...
대략 4년 전
문제를 풀었습니다
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...
대략 4년 전
문제를 풀었습니다
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...
대략 4년 전