Resuelto


nxn matrix with elements from 1:n^2
input n defines the dimension of a square matrix to be filled from 1 to n^2 with 1 in upper left corner and n^2 in bottom right...

29 días hace

Resuelto


Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...

29 días hace

Resuelto


Creating a matrix by taking shifted copies of a given vector v as columns
This problem is the same as the problem 761 except that here we are testing it for any given vector ; a row or column vector. Th...

30 días hace

Resuelto


Find the surface area of a cone.
For instance, Given r (radius) = 3, and s (slant height) = 5: surface area should be 94.

alrededor de 1 mes hace

Resuelto


Collect a set of candy wrappers
This past Halloween, the siblings Matilda and Labrun amused (and sometimes confused) their many neighbors with their costumes in...

alrededor de 1 mes hace

Resuelto


Divisible by 5
Pursuant to the first problem in this series, this one involves checking for divisibility by 5. Write a function to determine i...

alrededor de 1 mes hace

Resuelto


Divisible by 4
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

alrededor de 1 mes hace

Resuelto


Inscribed Pentagon? 2
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

alrededor de 1 mes hace

Resuelto


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

alrededor de 1 mes hace

Resuelto


Carmichael Number
Car michael number is a composite number which satisfy following relation: for all integers which are coprime to . ...

alrededor de 1 mes hace

Resuelto


Extract diagonal of sparse quadratic form
Consider the matrix A and vector v given by, A=round(sprand(5e3,1e4,1/1e4*100)*100); v=randi(10,width(A),1); Write a rout...

alrededor de 1 mes hace

Resuelto


2x2 binning of a large sparse matrix
Consider the 20000 x 20000 sparse matrix, A=round(sprand(2e4,2e4,1/1e4*100)*1000); The task is to divide this matrix into 2x...

alrededor de 1 mes hace

Resuelto


Condition number of Kronecker product
Given NxN matrix A and MxM matrix B, where M,N<=1000, write a routine to compute the condition number of kron(A,B).

alrededor de 1 mes hace

Resuelto


Build a block Toeplitz matrix
A symmetric block Toeplitz matrix has the form, where the are compatibly-sized matrices. Write a routi...

alrededor de 1 mes hace

Resuelto


Pairs with Given Sum
Given an array of integers and a target sum, return all unique pairs whose sum is equal to the target. The output should be a ma...

alrededor de 1 mes hace

Resuelto


Connect Four - 02
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01> In addition to previous proble...

alrededor de 1 mes hace

Resuelto


Seconds
Given the number of seconds after 12 am, find the time in the given format (12/24). If the format is not mentioned, use 24-hour...

alrededor de 1 mes hace

Resuelto


Dominant Matrix - 02
It is a follow-up of the problem 55995. There, you found out whether a matrix is diagonally dominant or not. In this problem, y...

alrededor de 1 mes hace

Resuelto


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

alrededor de 1 mes hace

Resuelto


Symmetric Pair
Given an (n, 2) matrix, remove any symmetric pairs from the matrix. Keep the first occurrence. (2, 3) and (3, 2) are considere...

alrededor de 1 mes hace

Resuelto


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

alrededor de 1 mes hace

Resuelto


Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...

alrededor de 1 mes hace

Resuelto


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

alrededor de 1 mes hace

Resuelto


The Case of the Missing Prototype – Identify the Thief by Comparing Suspects’ Evidence and Alibi Scores
After gathering fingerprints, alibis, sensor data, and digital clues, it’s time to pinpoint the thief. You have a struct array ...

alrededor de 1 mes hace

Resuelto


Convert Decimal to Hexavigesimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

alrededor de 1 mes hace

Resuelto


Popular Word Game™ Distance
Professor Ned, who holds the Nedowed Chair of Crackpot Mathematics at the University of Nedsburg, has recently discovered the da...

alrededor de 1 mes hace

Resuelto


Leaderboard for the Nedball World Cup
At the upcoming inaugural Nedball World Cup, organizers need to track who is in the lead for the coveted Golden Toeplitz trophy,...

alrededor de 1 mes hace

Resuelto


Government of the Neds, by the Neds, for the Neds - Distribute the Nedsburg City Councilors
The city of Nedsburg consists of several islands, the number of which changes regularly, due to tectonic forces, shoddy civil en...

alrededor de 1 mes hace

Resuelto


A Nedlish Country Garden - Check for Valid Arrangement
Nedland is famous for its stately gardens, which typically have a centerpiece of a square grid, with certain squares featuring a...

alrededor de 1 mes hace

Resuelto


Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

alrededor de 1 mes hace

Cargar más