Heyi Ding
Followers: 0 Following: 0
Statistiken
0 Probleme
107 Lösungen
RANG
N/A
of 289.889
REPUTATION
N/A
BEITRÄGE
0 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
0
RANG
of 19.604
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
Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...
mehr als ein Jahr vor
Gelöst
Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...
mehr als ein Jahr vor
Gelöst
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
mehr als ein Jahr vor
Gelöst
surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...
mehr als ein Jahr vor
Gelöst
Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...
mehr als ein Jahr vor
Gelöst
Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55
mehr als ein Jahr vor
Gelöst
Determine the length of a string of characters
Determine the length of a string of characters
mehr als ein Jahr vor
Gelöst
Equal to their cube
Tell me three real numbers that are equal to their cubes?
mehr als ein Jahr vor
Gelöst
Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...
mehr als ein Jahr vor
Gelöst
Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).
mehr als ein Jahr vor
Gelöst
Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0
mehr als ein Jahr vor
Gelöst
Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?
mehr als ein Jahr vor
Gelöst
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
mehr als ein Jahr 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 ein Jahr vor
Gelöst
Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...
mehr als ein Jahr vor
Gelöst
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
mehr als ein Jahr vor
Gelöst
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...
mehr als ein Jahr vor
Gelöst
Convert binary numbers array into array of decimal numbers.
Convert binary numbers array into array of decimal numbers. Example x=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ;...
fast 2 Jahre vor
Gelöst
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
fast 2 Jahre vor
Gelöst
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
fast 2 Jahre vor
Gelöst
Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...
etwa 2 Jahre vor
Gelöst
Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3
etwa 2 Jahre vor
Gelöst
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
etwa 2 Jahre vor
Gelöst
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
etwa 2 Jahre vor
Gelöst
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
etwa 2 Jahre vor
Gelöst
Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...
etwa 2 Jahre vor
Gelöst
Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.
etwa 2 Jahre vor
Gelöst
Square a Number
Given an input x, return y, which is equal to the square of x.
etwa 2 Jahre vor