Solved


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

3 months ago

Solved


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

3 months ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

3 months ago

Solved


Create tangent function out of cosine only
Please don't use tangent and sine functions

3 months ago

Solved


Ratio between sums of prime and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

3 months ago

Solved


Double the next!
Given two numbers, m and n, find a matrix [m,n] where each element value is twice the value of the previous element. Starting fr...

3 months ago

Solved


Alternate elements!
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

3 months ago

Solved


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

3 months ago

Solved


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

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

3 months ago

Solved


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

3 months ago

Solved


To convolve two vectors
To convolve two vectors

3 months ago

Solved


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

3 months ago

Solved


Add two hex numbers
Add two hex numbers

3 months ago

Solved


Add two different item as shown in example
Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

3 months ago

Solved


Find the rank of a matrix
Determine the rank of a matrix without using the MATLAB function of the same name.

3 months ago

Solved


find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

3 months ago

Solved


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

3 months ago

Solved


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

3 months ago

Solved


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

3 months ago

Solved


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

3 months ago

Solved


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

3 months ago

Solved


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

3 months ago

Solved


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

3 months ago

Solved


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

3 months ago

Solved


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

3 months ago

Solved


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

3 months ago

Solved


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

3 months ago

Solved


Product of all elements in an array
Compute the product of all elements in an array.

3 months ago

Load more