Solved

Calculate the derivative of a polynomial

Example: in = [ 1 1 1 ] out = [ 2 1 ]

meer dan 8 jaar ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

meer dan 8 jaar ago

Solved

Replace multiples of 5 with NaN

It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

meer dan 8 jaar ago

Solved

Number of 1s in the Binary Representation of a Number

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

meer dan 8 jaar ago

Solved

Derivative of polynomial

Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

meer dan 8 jaar ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

meer dan 8 jaar ago

Solved

Rotate a Matrix

Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

meer dan 8 jaar ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

meer dan 8 jaar ago

Solved

Arrange vector in ascending order

Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

meer dan 8 jaar ago

Problem

Find supported functions

Given a function name, return true if that function is supported by the toolboxes that are installed with MATLAB on this machine...

meer dan 8 jaar ago | 1 | 41 solvers

Question

Has anybody tried the MATLAB certification by BrainMeasures?

Recently I found MATLAB certification provided by BrainMeasures.com Has anybody appeared for it? ANy feedbacks on it?

meer dan 8 jaar ago | 2 answers | 0

Solved

Find and replace the zero array in a matrix

Find the zero array in the matrix and replace it with average of surrounding (adjacent) arrays. Example: A = 3 ...

meer dan 8 jaar ago

Solved

Avalaible area: wall construction

You need to build a wall to enclose a certain area. Calculate the available area after you build the wall. Assumptions * ...

meer dan 8 jaar ago

Solved

Compare two input matrices

Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

meer dan 8 jaar ago

Solved

surface of a spherical planet

you just discovered its circumference, that is the input.

meer dan 8 jaar ago

Solved

Given a number find two variables

If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

meer dan 8 jaar ago

Solved

Sum the 'edge' values of a matrix

Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

meer dan 8 jaar ago

Solved

Fahrenheit to Celsius using multiple statements

Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

meer dan 8 jaar ago

Solved

Counting in Finnish

Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

meer dan 8 jaar ago

Solved

Bullseye Matrix

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

meer dan 8 jaar ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

meer dan 8 jaar ago

Solved

Column norms of a matrix

Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

meer dan 8 jaar ago

Solved

calculate linear convolution two vectors

for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

meer dan 8 jaar ago

Solved

Solve the set of simultaneous linear equations

Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

meer dan 8 jaar ago

Solved

Replace NaNs with the number that appears to its left in the row.

Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

meer dan 8 jaar ago

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

meer dan 8 jaar ago

Solved

Extract leading non-zero digit

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

meer dan 8 jaar ago

Solved

Compute a dot product of two vectors x and y

x and y are input vectors, d is a number and contains their dot product

meer dan 8 jaar ago