Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

5 months ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

5 months ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

5 months ago

Solved


dễ dàng
cho 2 số. tính tích của chúng

5 months ago

Solved


Chào các bạn.
Cho 3 số. Tính tổng của chúng

5 months ago

Problem


Get Next Combination
Return next combination For example three-element combinations of 1:5 1 2 3 1 2 4 1 ...

7 months ago | 1

Problem


Bridge and Torch Problem - Probability
<https://en.wikipedia.org/wiki/Bridge_and_torch_problem Details of the problem ...> There are four people who wants to cross...

10 months ago | 0

Problem


Bridge and Torch Problem - Length of Unique Time List
<https://en.wikipedia.org/wiki/Bridge_and_torch_problem Details of the problem ...> Input is crossing time list. (for exampl...

10 months ago | 0

Problem


Bridge and Torch Problem - Minimum time
<https://en.wikipedia.org/wiki/Bridge_and_torch_problem Details of the problem ...> Input is crossing time list. (for exampl...

10 months ago | 0

Solved


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

11 months ago

Solved


Mean number of letters per word (Hard)
The previous problem in this series is <https://www.mathworks.com/matlabcentral/cody/problems/44852-mean-number-of-letters-per-w...

12 months ago

Solved


Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

12 months ago

Solved


Get the mean digit
Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example: x ...

12 months ago

Solved


Sum of a geometric series
Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

12 months ago

Solved


Ratio between sum of primer numbers and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

12 months ago

Solved


Easy problem
This is an easy problem. Just click on submit.

1 year ago

Solved


Double the next!
Given two numbers, m and n, find a matrix m x n where each element value is twice the value of the previous element. Starting fr...

1 year ago

Solved


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

1 year ago

Solved


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

1 year ago

Solved


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

1 year ago

Solved


Numbers on 7-segment
This is a 7-segment: _ |_| |_| It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...

1 year ago

Solved


Word Distance - Average Sort
Based on the method of <https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum this problem>, write a fun...

1 year ago

Solved


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

1 year ago

Solved


Determine if a row vector has NaN
Determine if a row vector x has NaN

1 year ago

Solved


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

1 year ago

Solved


UICBioE240 problem 1.9
Swap the first and last columns of a matrix. So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5]; ...

1 year ago

Solved


Testing Problem Creation
This is where MATLAB based question will be

1 year ago

Solved


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

1 year ago

Solved


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

1 year ago

Solved


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

1 year ago

Load more