Gelöst


Create times-tables (★★★)
(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

mehr als 5 Jahre vor

Gelöst


Concatenate matrix into 4 quadrants for given number of iteration
If given a matrix and number, output should be its concatenation like wavelet for given number of iterations. Example a ...

mehr als 5 Jahre vor

Gelöst


Namespace
Create a set of n variable names 'a_1',...,'a_n' The result should be a column oriented cell array of strings. Example inp...

mehr als 5 Jahre vor

Gelöst


Explode string
Break a sentence into cell of words

mehr als 5 Jahre vor

Gelöst


Logarithm with base other than 'e'
The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Testing Problem Creation
This is where MATLAB based question will be

mehr als 5 Jahre vor

Gelöst


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

mehr als 5 Jahre vor

Gelöst


Rotate a matrix without using rot90
rotate the input square matrix by certain degrees (e.g. 270 or 450 etc.) without using rot90 or flip function. its an extension...

mehr als 5 Jahre vor

Gelöst


Pell numbers
Find the nth pell number <https://en.wikipedia.org/wiki/Pell_number>

mehr als 5 Jahre vor

Gelöst


Repeat elements of a vector
Repeat each elements of a given vector according to their values. * x=[1,2,1,3] * y=[1,2,2,1,3,3,3]

mehr als 5 Jahre vor

Gelöst


Determine whether the input is odd, even, or neither.
Make a function that returns ‘odd’ if the input is odd, ‘even’ if the input if even or ‘error’ if the input is neither odd nor ...

mehr als 5 Jahre vor

Gelöst


How to calculate the length of a triangle's side given two angles and one side
You are given a triangle with angles alpha, beta and gamma and sides a opposite alpha, b opposite beta and c opposite gamma. ...

mehr als 5 Jahre vor

Gelöst


Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

mehr als 5 Jahre vor

Gelöst


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

mehr als 5 Jahre vor

Gelöst


One-hot encoding

mehr als 5 Jahre vor

Gelöst


LCM

mehr als 5 Jahre vor

Gelöst


Create an array from 1 to x in steps of 1.

mehr als 5 Jahre vor

Gelöst


Circle : Square

mehr als 5 Jahre vor

Gelöst


Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

mehr als 5 Jahre vor

Gelöst


Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

mehr als 5 Jahre vor

Gelöst


Check if the input is a strong prime

mehr als 5 Jahre vor

Gelöst


Check if the input is an interprime

mehr als 5 Jahre vor

Gelöst


Go back n times
You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following; [ 1 NaN NaN NaN ...

mehr als 5 Jahre vor

Gelöst


Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...

mehr als 5 Jahre vor

Gelöst


Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

mehr als 5 Jahre vor

Gelöst


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

mehr als 5 Jahre vor

Gelöst


Percentage profit:5: Cumulative Interest
If a bank is giving r% yearly cumulative interest for deposit, how much profit we can get by keeping x amount of money for n mon...

mehr als 5 Jahre vor

Mehr laden