Solved

For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?

For a rectangle, if x is the length and 2x is the width. Then find out x from the area of the rectangle? if the area is equal...

nästan 5 år ago

Solved

Sum of Two Numbers

Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

nästan 5 år ago

Solved

find the logic,easy one

find the logic behind, example x=18 y=306 x=53 y=2809

nästan 5 år ago

Solved

determine amount cookies left

started with 3 cookies and you never ate any how many are left

nästan 5 år ago

Solved

Find the largest number

Given a vector v with 4 elements, find the largest number x. Example: Input: v = [4 7 1 6]; Output: x = 7; You mu...

nästan 5 år ago

Solved

How many days in a month?

Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

nästan 5 år ago

Solved

edge detection

write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

nästan 5 år ago

Solved

When can one be the Life Member of the IEEE?

Consult the site http://en.wikipedia.org/wiki/Ieee from where it can be seen that IEEE Members who have reached the age of 65 an...

nästan 5 år ago

Solved

Possible Outcomes of American Roulette

The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

nästan 5 år ago

Solved

Remove NaNs and numbers adjacent to NaNs

The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

nästan 5 år ago

Solved

Rainbow matrix

Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

nästan 5 år ago

Solved

Generate this matrix

Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

nästan 5 år ago

Solved

Find minimum and maximum elements of an array

For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

nästan 5 år ago

Solved

Permutations of input vector

Find and output all permutations of given vector

nästan 5 år ago

Solved

Step up

For given input array, output a array with all elements step up by two

nästan 5 år ago

Solved

multiple of nine?

Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

nästan 5 år ago

Solved

Wheat on a chessboard pt 1

If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

nästan 5 år ago

Problem

Decoder Ring

You are given a matrix of numbers, your objective is to use the decoder ring to find the hidden message. ex. encoded_messa...

nästan 5 år ago | 3 | 19 solvers

Solved

Corresponding letter to ASCII code.

Given the letter, the output will show the corresponding ASCII code.

nästan 5 år ago

Solved

Calculating selling price

Cost of a Product is $x What should be the selling price if you want to gain 10%?

nästan 5 år ago

Solved

find a specific element from an matrix

Find the element from matrix which is in 2nd row and 3rd column.

nästan 5 år ago

Solved

Vertically stack two vectors

Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

nästan 5 år ago

Solved

the number of inputs

Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

nästan 5 år ago

Solved

MATLAB Basic: rounding III

Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

nästan 5 år ago

Solved

Rotate a matrix for 180 degree

Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

nästan 5 år ago

Solved

Accessing elements on the diagonal

Access the diagonal elements of a matrix without 'diag' function

nästan 5 år ago

Solved

Decide whether determinant is zero.

Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...

nästan 5 år ago

Solved

Create a square matrix of zeros of even order

Create a square matrix of zeros of even order

nästan 5 år ago