A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Mile to Kilometer
x is mile and y is km

plus de 5 ans il y a

A résolu


Watt
Ampere x Volt = Watt

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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.

plus de 5 ans il y a

A résolu


Matrix Max Finder
Output the maximum value in a matrix

plus de 5 ans il y a

A résolu


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.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Degrees to Radian
Convert degrees to radians

plus de 5 ans il y a

A résolu


Radians to Degrees
Convert radians to degrees.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

Charger plus