Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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.

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Mile to Kilometer
x is mile and y is km

mehr als 5 Jahre vor

Gelöst


Watt
Ampere x Volt = Watt

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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.

mehr als 5 Jahre vor

Gelöst


Matrix Max Finder
Output the maximum value in a matrix

mehr als 5 Jahre vor

Gelöst


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.

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Degrees to Radian
Convert degrees to radians

mehr als 5 Jahre vor

Gelöst


Radians to Degrees
Convert radians to degrees.

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Mehr laden