Solved


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

5 years ago

Solved


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

5 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

5 years ago

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

5 years ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

5 years ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

5 years ago

Solved


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

5 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

5 years ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

5 years ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

5 years ago

Solved


Find 0 in array
Given array find where there 0 is.

5 years ago

Solved


Mile to Kilometer
x is mile and y is km

5 years ago

Solved


Watt
Ampere x Volt = Watt

5 years ago

Solved


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

5 years ago

Solved


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

5 years ago

Solved


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

5 years ago

Solved


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

5 years ago

Solved


Get derivarive of polynomial given as vector array.
Get derivarive of polynomial given as vector array. Example p=[ 1 2 0 5 0 3 ]; result=[ 5 8 0 10 ...

5 years ago

Solved


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

5 years ago

Solved


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

5 years ago

Solved


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

5 years ago

Solved


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

5 years ago

Solved


Matrix Max Finder
Output the maximum value in a matrix

5 years ago

Solved


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

5 years ago

Solved


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

5 years ago

Solved


Degrees to Radian
Convert degrees to radians

5 years ago

Solved


Radians to Degrees
Convert radians to degrees.

5 years ago

Solved


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

5 years ago

Solved


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

5 years ago

Solved


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

5 years ago

Load more