Christian Schröder
2019 年からアクティブ
Followers: 0 Following: 0
Really enjoying MATLAB!
統計
All
Feeds
解決済み
Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...
2日 前
解決済み
Find out if the given number is a square of natural number.
For example , Input =4,output =1 Input=1,output=1 Input=0,output=0 Input=8,output=0
5日 前
解決済み
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...
8日 前
解決済み
Algorithmic Trading - 1 (optimize simple trading strategy)
This is the first of a series of problems on quant trading. Quant traders seek to optimize investment performance devising tradi...
10日 前
解決済み
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* ...
10日 前
解決済み
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...
10日 前
解決済み
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...
10日 前
解決済み
Moyenne pondérée
Ecrire une fonction qui prend en entrée un vecteur P et un vecteur V et calcule la moyenne pondérée MP des élements vi d'un vec...
11日 前
解決済み
Explore the twin prime Goldbach conjecture
The Goldbach conjecture says that every positive even integer greater than 2 can be expressed as the sum of two prime numbers in...
13日 前
解決済み
Pentago: find winning move
<http://en.wikipedia.org/wiki/Pentago Pentago> is a challenging two-player strategy game. The objective is to be the first playe...
23日 前
解決済み
Conditional transpose II
As in problem 60734, you're given two vectors, x and y, which might be row or a column vectors. Your task is to ensure that y ha...
約1ヶ月 前
問題
Conditional transpose II
As in problem 60734, you're given two vectors, x and y, which might be row or a column vectors. Your task is to ensure that y ha...
約1ヶ月 前 | 0 | 7 個のソルバー
解決済み
Delete some elements in the natural set and find the sum of the first n terms
Delete the number (except 0,1) with a complete square number from the natural set of numbers, form a new set of numbers, find th...
約1ヶ月 前
解決済み
Conditional transpose
You're given two vectors of the same length, x and y, which might be row or a column vectors. Your task is to ensure that y has ...
約1ヶ月 前
問題
Conditional transpose
You're given two vectors of the same length, x and y, which might be row or a column vectors. Your task is to ensure that y has ...
約1ヶ月 前 | 0 | 8 個のソルバー
解決済み
Cluster Partition
Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers. 0 is to be treated inde...
約1ヶ月 前
解決済み
Find the closest geyser prime
My wife and I celebrated our honeymoon and our recent anniversary in Yellowstone and Grand Teton National Parks. After returning...
約1ヶ月 前
解決済み
Wheatstone bridge
Determine if a set of resistors maintain Wheatstone bridge equilibrium
約1ヶ月 前
解決済み
Organic Chemistry
Determine the names of the organic component formed with carbon and hydrogen. For example, if n=1 the name is methane
約1ヶ月 前
解決済み
Remove the diagonal of a square matrix
Some Cody problems ask solvers to remove columns (e.g., CP 7), and others ask solvers to remove rows (e.g., CP 44033). Write a...
約1ヶ月 前
解決済み
Convert RGB to Grayscale
Convert a 3 element RGB array to its correspoding grayscale pixel (a scalar) *Hint: a formula exists!
2ヶ月 前
解決済み
Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...
2ヶ月 前
解決済み
Reverse a string
Return a string with the characters in reverse order from a given input string Ex: my_str = "Ciao" function should output "...
2ヶ月 前
解決済み
Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix. For Example: The sum of all positi...
2ヶ月 前
解決済み
Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements. * Assume all input matrices are square & corresponding element...
2ヶ月 前
解決済み
Given two arrays, find the maximum overlap
Given two (integer) arrays s1 and s2, create a new array s3 which is as short as possible and contains both arrays. #1 s1 = [...
2ヶ月 前
問題
The Prime Days of Christmas
On the first day of Christmas my true love sent to me partridges in a pear tree. On the second day of Christmas my true love s...
2ヶ月 前 | 0 | 7 個のソルバー
解決済み
Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...
2ヶ月 前
解決済み
Compute the totient summatory function
Cody Problem 656 deals with the totient function, denoted by which counts the numbers less than that are relatively prime to ....
2ヶ月 前