A résolu


Number Puzzles - 001

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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]

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Number Puzzle - 050

plus d'un an il y a

A résolu


Number Puzzle - 083

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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];

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Falling on the Moon.

plus d'un an il y a

A résolu


Number Puzzle - 025

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Classification metrics

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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.

plus d'un an il y a

A résolu


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

plus d'un an il y a

Charger plus