Solved


Sum of even numbers in a vector
Write a function that takes a vector of numbers and returns the sum of all the even numbers in the vector.

1 month ago

Solved


Linearly Spaced Array
Create a linearly spaced array from 0 to x consisting of y elements.

1 month ago

Solved


Mach Number Calculator
Create a solver which converts a speed in km/s to a Mach Number Round to 2 decimal places Requires: Mach Number Formula (ea...

1 month ago

Solved


Multiplying the Sums of Two Arrays
Get two arrays, add the values within the array up, and then multiply the two total values. [2,3]*[3,6] 5*18 90

1 month ago

Solved


Escape from Planet ....
Given a Planets mass M, and raduis r. Calculate the surface escape velocity and the escape velocity at height h. and the diff...

1 month ago

Solved


Center-of-Mass Index of a Vector
Given a numeric vector x, treat each element x(i) as a mass located at index i. Compute the center-of-mass index idx = sum(i *...

1 month ago

Solved


First Unique Character
Given a character vector s, return the first character that appears exactly once in s. If every character repeats at least once...

1 month ago

Solved


Upper vs Lower Triangle
Create an n × n matrix A such that: Elements strictly above the main diagonal are 1 Elements strictly below the main diagonal ...

1 month ago

Solved


Odd Run Sums
Given a row vector x of integers, find every maximal run of consecutive odd numbers and return a row vector containing the sum o...

1 month ago

Solved


Mirror Pair Mean
Given a row or column vector v, create a vector y of the same size where each element is replaced by the average of itself and i...

1 month ago

Solved


Find the Nth number in the 8-sequence
Find the Nth number in the 8-sequence. 8, 16, 24, 32, 48, 56, 64, 72, 88, ... Hint: Refer test suites

1 month ago

Solved


Find the Nth number in the 7-sequence
Find the Nth number in the 7-sequence. 7, 14, 21, 28, 35, 42, 49, 56, 63, 77, 84, ... Hint: Refer test suites

1 month ago

Solved


Find the Nth number in the 6-sequence
Find the Nth number in the 6-sequence. 6, 12, 18, 24, 36, 42, 48, 54, 66, ... Hint: Refer test suites

1 month ago

Solved


Find the Nth number in the 5-sequence
Find the Nth number in the 5-sequence. 5, 15, 25, 35, 45, 55, ... Hint: Refer test suites

1 month ago

Solved


Generate Secret Key for Cryptography
From a seed file (code.wav), decode the audio file (Bell 202 format at 200 bits/sec) into a binary stream and then convert the b...

1 month ago

Solved


Find the Prime Factors and Divisors of a Number
Given a positive integer n, find its prime factors as well as all of its divisors. Example: n=12 has prime factors [2,2,3] and ...

1 month ago

Solved


Which YAxis does this Graphic object belong to?
Your function gets a graphic object in an Axes that has 2 YAxis. Can you determine which YAxis does this object belong to? I pr...

1 month ago

Solved


Monkey and the Peaches
A monkey picked a certain number of peaches on the first day. Each day, the monkey eats half of the remaining peaches plus one ...

1 month ago

Solved


Dimensional FindGroupsN
The upgraded version of the built-in findgroups, supports any data type, and you can specify a split dimension, and missing valu...

1 month ago

Solved


Chrono Matrix: Reconstructing the Time Portal
Your time-travel scanner has captured fragments of a portal matrix scattered across eras. Each fragment contains partial informa...

1 month ago

Solved


MATLAB Time Warp – Stabilize the Temporal Lattice by Finding the Dominant Eigenvector of a Time-Distorted Matrix
The Chrono-MAT Engine is malfunctioning. A time-distorted matrix A governs the stability of spacetime. Your mission: determine...

1 month ago

Solved


Decipher Message Using Prime of Primitive Root of Two Sequence Key
Provided a message with all characters <= 255 (ascii) as an input, decode the padded message (removing the random character pad)...

1 month ago

Solved


The Secret Code of Mars
NASA has intercepted a mysterious signal from Mars filled with random letters and numbers. Scientists believe each number in the...

1 month ago

Solved


Return the sum of all even numbers in a vector
Write a function that takes a vector of integers and returns the sum of all even numbers.

1 month ago

Solved


Compute the tersum
The tersum, which appears in certain mathematical games, involves adding two numbers in base 3 without carry and converting back...

1 month ago

Solved


q-dimensional Cartesian product
Your mission, should you choose to accept it, is to compute a q-dimensional Cartesian product, as follows. Let the input G be an...

1 month ago

Solved


Identify winnable games of Take a Square
A game has a pile of tokens, and two players alternate in taking a certain number of tokens from the pile, with the constraint t...

1 month ago

Solved


Total Area Covered by Overlapping Polygons
Given a variable length set of polygon vertex coordinates, compute the total area covered. For example, take two polygons with t...

1 month ago

Solved


Multiply real numbers to get the smallest integers
Write a function that takes a vector of real numbers and multiplies them by a factor to produce the integers with the smallest a...

1 month ago

Solved


CumulativeCumulative Count
This is a sequel to Problem #60994 - Cumulative Count. Given a row vector of integers with repeating values - here not all re...

1 month ago

Load more