Gelöst


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

fast 6 Jahre vor

Gelöst


Mile to Kilometer
x is mile and y is km

fast 6 Jahre vor

Gelöst


Watt
Ampere x Volt = Watt

fast 6 Jahre vor

Gelöst


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

fast 6 Jahre vor

Gelöst


Volume of Cylinder
Find the volume of a cylinder

fast 6 Jahre vor

Gelöst


Percentage
There is x liter water and y gram => z is percentage of salt in water

fast 6 Jahre vor

Gelöst


GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

fast 6 Jahre vor

Gelöst


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

fast 6 Jahre vor

Gelöst


Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

fast 6 Jahre vor

Gelöst


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

fast 6 Jahre vor

Gelöst


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

fast 6 Jahre vor

Gelöst


how tall are you?
you can find the length wit this code.

fast 6 Jahre vor

Gelöst


find the stepnumber?
you can find the stepnumber.

fast 6 Jahre vor

Gelöst


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

fast 6 Jahre vor

Gelöst


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

fast 6 Jahre vor

Gelöst


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

fast 6 Jahre vor

Gelöst


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

fast 6 Jahre vor

Gelöst


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

fast 6 Jahre vor

Gelöst


Square root of a number
Write a code that will output the square root of x.

fast 6 Jahre vor

Gelöst


Log of a number
Write a script that will give the log of x as output.

fast 6 Jahre vor

Gelöst


Number of primes
Count the number of primes less than 'n'.

fast 6 Jahre vor

Gelöst


Sort numbers by outside digits
Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

fast 6 Jahre vor

Gelöst


How unique?
Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...

fast 6 Jahre vor

Gelöst


Replace pattern 0 1 0 and 1 0 1
Find and replace a pattern in a row of zeroes and ones. * Find 1 0 1 and replace it with 1 1 1 * Find 0 1 0 and replace it w...

fast 6 Jahre vor

Gelöst


compress sequence into intervals
You're given a row vector of monotonically increasing integers most of which are consecutive. Find the upper and lower bounds of...

fast 6 Jahre vor

Gelöst


Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

fast 6 Jahre vor

Gelöst


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

fast 6 Jahre vor

Gelöst


The number of trailing zero digit of a factorial
For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

fast 6 Jahre vor

Gelöst


Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

fast 6 Jahre vor

Mehr laden