
C++
Spoken Languages:
Chinese
Pronouns:
No pronouns - Use my name only
Statistik
RANG
491
of 297.248
REPUTATION
159
BEITRÄGE
20 Fragen
148 Antworten
ANTWORTZUSTIMMUNG
60.0%
ERHALTENE STIMMEN
28
RANG
6.134 of 20.437
REPUTATION
187
DURCHSCHNITTLICHE BEWERTUNG
5.00
BEITRÄGE
15 Dateien
DOWNLOADS
32
ALL TIME DOWNLOADS
854
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Gelöst
Pipeline - Variable-length Input
Design the |gt|(>) method of |function_handle| so that: >> 1 > @sin > @cos ans = 0.666366745392881 >> cos(sin(1...
4 Monate vor
Gelöst
Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.
etwa 2 Jahre vor
Problem
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...
etwa 2 Jahre vor | 2 | 2 Lösungsvorschläge
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...
mehr als 2 Jahre vor | 1 | 22 Lösungsvorschläge
Problem
Ambiguous concatenation
Give two expressions that can have different meaning inside/outside a concatenation expression.
mehr als 2 Jahre vor | 0 | 4 Lösungsvorschläge
Gelöst
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
mehr als 2 Jahre vor
Gelöst
Curry a function handle
From Wikipedia, Currying: In mathematics and computer science, currying is the technique of converting a function that takes mu...
fast 3 Jahre vor
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...
fast 3 Jahre vor | 0 | 4 Lösungsvorschläge
Gelöst
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...
fast 3 Jahre vor
Gelöst
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.
fast 3 Jahre vor
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...
fast 3 Jahre vor | 1 | 19 Lösungsvorschläge
Gelöst
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 ...
fast 3 Jahre vor
Gelöst
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...
mehr als 3 Jahre vor
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 ...
mehr als 3 Jahre vor | 0 | 2 Lösungsvorschläge
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...
mehr als 3 Jahre vor | 0 | 5 Lösungsvorschläge
Gelöst
Dealfun (1.0)
*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...
mehr als 3 Jahre vor
Problem
Original coordinate of the min element of a subset of elements
etwa 4 Jahre vor | 2 | 18 Lösungsvorschläge
Gelöst
Restricted Subtraction v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...
mehr als 4 Jahre vor
Gelöst
Restricted Multiplication v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...
mehr als 4 Jahre vor
Gelöst
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* ...
mehr als 4 Jahre vor
Gelöst
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...
mehr als 4 Jahre vor
Gelöst
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...
mehr als 4 Jahre vor