Statistiken
RANG
143.472
of 289.920
REPUTATION
0
BEITRÄGE
0 Fragen
1 Antwort
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
0
RANG
of 19.607
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Gelöst
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
etwa 7 Jahre vor
Gelöst
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
mehr als 8 Jahre vor
Gelöst
Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...
mehr als 8 Jahre vor
Gelöst
Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...
etwa 9 Jahre vor
Gelöst
Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.
etwa 9 Jahre vor
Gelöst
Blockland
Add a new block to these towers without letting them fall. To add a new block just choose the x-coordinate (between -10 and ...
etwa 9 Jahre vor
How to re-bin histograms with wider bins?
Hi Pietro, That might get you startet on a solution. bins = [4 5 1 4 5 0]; bins must have even number of elements, i...
mehr als 9 Jahre vor | 0
Gelöst
Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...
mehr als 9 Jahre vor
Gelöst
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
mehr als 9 Jahre vor
Gelöst
Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...
mehr als 9 Jahre vor
Gelöst
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...
mehr als 9 Jahre vor
Gelöst
Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...
mehr als 9 Jahre vor
Gelöst
Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...
mehr als 9 Jahre vor
Gelöst
Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...
mehr als 9 Jahre vor
Gelöst
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...
mehr als 9 Jahre vor
Gelöst
surface of a spherical planet
you just discovered its circumference, that is the input.
mehr als 9 Jahre vor
Gelöst
Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.
mehr als 9 Jahre vor
Gelöst
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
mehr als 9 Jahre vor
Gelöst
Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
mehr als 9 Jahre vor
Gelöst
Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...
mehr als 9 Jahre vor
Gelöst
Find out output of following expression
Find out output of following expression Q=2log10 x+cos π+√(5yz)+|x^2-y^2 |
mehr als 9 Jahre vor
Gelöst
First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];
mehr als 9 Jahre vor
Gelöst
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
mehr als 9 Jahre vor
Gelöst
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
mehr als 9 Jahre vor
Gelöst
Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...
mehr als 9 Jahre vor
Gelöst
Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
mehr als 9 Jahre vor
Gelöst
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
mehr als 9 Jahre vor
Gelöst
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
mehr als 9 Jahre vor
Gelöst
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
mehr als 9 Jahre vor