A résolu


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

plus de 4 ans il y a

A résolu


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

plus de 4 ans il y a

A résolu


Negative Infinity
Round the given array a towards negative infinity.

plus de 4 ans il y a

A résolu


Positive Infinity
Round the array a towards positive infinity

plus de 4 ans il y a

A résolu


frame of the matrix
Given the matrix M, return M without the external frame.

plus de 4 ans il y a

A résolu


ASCii Code
Using Matlab get the ASCii for '?'

plus de 4 ans il y a

A résolu


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

plus de 4 ans il y a

A résolu


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

plus de 4 ans il y a

A résolu


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

plus de 4 ans il y a

A résolu


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

plus de 4 ans il y a

A résolu


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

plus de 4 ans il y a

A résolu


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

plus de 4 ans il y a

A résolu


Rounding
Round 10.67 and make 'y' equal to that number.

plus de 4 ans il y a

A résolu


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

plus de 4 ans il y a

A résolu


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

plus de 4 ans il y a

A résolu


Create an m x n array consisting only of an input value.
Create an array with m rows and n columns wherein all entries are assigned the input value x.

plus de 4 ans il y a

A résolu


More luck than brains
Give a random function that guess and return numbers from 1 to 6 exactly like the test suite .

plus de 4 ans il y a

A résolu


Self-similarity 1 - Every other term
Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. Se...

plus de 4 ans il y a

A résolu


Energy Conversion 2

plus de 4 ans il y a

A résolu


Energy Conversion 1

plus de 4 ans il y a

A résolu


Velocity Conversion

plus de 4 ans il y a

A résolu


Area Conversion 2

plus de 4 ans il y a

A résolu


Area Conversion 1

plus de 4 ans il y a

A résolu


Mass Conversion 2

plus de 4 ans il y a

A résolu


Mass Conversion 1

plus de 4 ans il y a

A résolu


Temperature Conversion 3

plus de 4 ans il y a

A résolu


Temperature Conversion 2

plus de 4 ans il y a

A résolu


Temperature Conversion 1

plus de 4 ans il y a

Charger plus