Risolto


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

oltre 7 anni fa

Risolto


Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

oltre 7 anni fa

Risolto


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

oltre 7 anni fa

Risolto


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

oltre 7 anni fa

Risolto


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

oltre 7 anni fa

Risolto


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

oltre 7 anni fa

Risolto


Permutation
How many different words can be formed using all the letters(together) from a given input word? Input is a string.

oltre 7 anni fa

Risolto


Check if two matrices are permutations of each other
Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

oltre 7 anni fa

Problema


Is input the global variable z?
When the input is certainly not the global variable |z|, your function must return |false|. Otherwise return |true|. All input...

oltre 7 anni fa | 0 | 4 risolutori

Risolto


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

oltre 7 anni fa

Risolto


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

oltre 7 anni fa

Risolto


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

oltre 7 anni fa

Risolto


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

oltre 7 anni fa

Risolto


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

oltre 7 anni fa

Risolto


find the 'M'
for an input x, return 1 at the location of the letter 'M'

oltre 7 anni fa

Risolto


Negative without '-'
Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

oltre 7 anni fa

Risolto


Count the Digits in the Box
In this problem you must provide an accurate census of all the digits inside a given box. The problem is complicated by the fact...

oltre 7 anni fa

Risolto


determine if
determine if the elements of a matrix is a nan and return true

oltre 7 anni fa

Risolto


wipe out!
make all the elements in given x zero.

oltre 7 anni fa

Risolto


true or false
if the matrix has a zero, return true. else, return false

oltre 7 anni fa

Risolto


Divide the Least Common Multiple by the Greatest Common Divisor of two numbers
Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

oltre 7 anni fa

Risolto


Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

oltre 7 anni fa

Risolto


Create cotangent function out of sine.
Please, don't use cos, tan, cot matlab functions.

oltre 7 anni fa

Risolto


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

oltre 7 anni fa

Risolto


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

oltre 7 anni fa

Risolto


Degrees to Radian
Convert degrees to radians

oltre 7 anni fa

Risolto


Radians to Degrees
Convert radians to degrees.

oltre 7 anni fa

Risolto


write a function to calculate the snr after quantizing the signal in dB
osig : original signal qsig : quantized signal qerror : quantization error HINT: snr = 10×log10(sum(osig × osig)/sum...

oltre 7 anni fa

Risolto


Negative Infinity
Round the given array a towards negative infinity.

oltre 7 anni fa

Risolto


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

oltre 7 anni fa

Carica altro