Solved

Velocity Conversion

Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

5 giorni ago

Solved

Latest Question On Cody

Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

5 giorni ago

Solved

Write a cubic formula function

Create a function that will output the three roots of a cubic equation specified by the 4 coefficients listed as input. The outp...

5 giorni ago

Solved

Solving Quadratic Equations (Version 2)

Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

5 giorni ago

Solved

Solving Quadratic Equations (Version 1)

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

5 giorni ago

Solved

De-primed

Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

5 giorni ago

Solved

Find numbers in the Popular Computing Z-sequence

Here’s a quick one. In 1977 the magazine Popular Computing sought “problem situations for which the computer is the best (if not...

6 giorni ago

Solved

realsmall

Please return the smallest positive number. This is a little silly problem, but the solution has some funny properties...

6 giorni ago

Solved

Pancakes for everyone!

Accordingly to the <http://nl.mathworks.com/matlabcentral/cody/problems/42460-the-cake-is-a-lie problem 42460>. All the children...

6 giorni ago

Solved

Combine Data With Gaps

Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

7 giorni ago

Solved

Hard limit function

Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

7 giorni ago

Solved

02 - Vector Variables 2

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

7 giorni ago

Solved

Are you in XY plane?

Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

7 giorni ago

Solved

Matlab Basics II - Operations and Matrix Dimensions

Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

7 giorni ago

Solved

Matlab Basics - Logical Tests I

Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

7 giorni ago

Solved

Remove the first, third and fifth rows of a matrix

Given a matrix x with at least five rows, return a matrix y that includes all rows of x except for th 1st, the 3rd and 5th. E...

7 giorni ago

Solved

Vector addition

Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

7 giorni ago

Solved

Spot the rectangle

This problem is related to the 17x17 challenge. Given a matrix filled with ones and zeros, determine whether or not any rectangl...

8 giorni ago

Solved

Sort Reversal

There are n index cards in a row, with n distinct integers written on them (one number per card) so that the numbers are sorted ...

8 giorni ago

Solved

Toads and Frogs Puzzle

On a one-dimensional board with n + m + 1 cells, there are n counters in the first n cells representing Toads and m counters in ...

8 giorni ago

Solved

Find 10's complement

Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

8 giorni ago