Solved


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

1 year ago

Solved


Number Puzzles - 001

1 year ago

Solved


What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

1 year ago

Solved


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

1 year ago

Solved


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

1 year ago

Solved


Find 0 in array
Given array find where there 0 is.

1 year ago

Solved


Matrix Rotation
Write a MATLAB function that rotates a given matrix by 90 degrees clockwise. The rotation should be performed in-place, without ...

1 year ago

Solved


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...

1 year ago

Solved


Lista Ordenada
Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false. Ordenado([1 2 3 4]) = true;

1 year ago

Solved


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

1 year ago

Solved


Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...

1 year ago

Solved


MATLAB Basics: Complex Numbers
For a given complex number, x, return the real and imaginary parts as a vector, y = [Real Imaginary].

1 year ago

Solved


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

1 year ago

Solved


Normalize by maximum
Subtract the maximum value in a column from the corresponding columns of a matrix.

1 year ago

Solved


Total resistance of a network of resistors in series and parallel
What is the total resistance of a network of resistors in series and in parallel? A matrix R contains the resistances (in Ohm) ...

1 year ago

Solved


Number Puzzle - 050

1 year ago

Solved


Number Puzzle - 083

1 year ago

Solved


Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

1 year ago

Solved


Minimum Maximum Sort Array
sort one array by put minimum value followed by maximum as follow a=[2 3 1 5] and the solution is y=[1 5 2 3 3 2 5 1];

1 year ago

Solved


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

1 year ago

Solved


Variance computation (★★★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

1 year ago

Solved


Falling on the Moon.

1 year ago

Solved


Number Puzzle - 025

1 year ago

Solved


Area of Cylindrical Shell
Consider a cylinder with a non-zero thickness with an inner radius of r1 and an outer radius of r2. If the height of the cylinde...

1 year ago

Solved


find location of indexes
Given a vector with integer values. Find the edge location of the stream of same value. For example: A=[0 0 0 1 1 1 1 2 2 ...

1 year ago

Solved


provide the numerical answer to these number questions...
return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

1 year ago

Solved


Classification metrics

1 year ago

Solved


Accessing value of variable whose name is stored in another variable as string.
Accessing value of variable whose name is stored in another variable as string. for example: var1=n; var2='var1'; %Assigning...

1 year ago

Solved


Find the number that has most primes those less than it
Given an vector x of integer numbers, find the element of x that has the most primes less than it.

1 year ago

Load more