A résolu


Impement str2cell
You are given a String that is equivalent to a cell array of scalars or vectors. Transform this String to its equivalent Cell a...

plus de 6 ans il y a

A résolu


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

plus de 6 ans il y a

A résolu


surface areas of a cylinder
There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

plus de 6 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 6 ans il y a

A résolu


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

plus de 6 ans il y a

A résolu


generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

plus de 6 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 6 ans il y a

A résolu


Check for keywords
If the entered string is a MATLAB keyword, return true else false

plus de 6 ans il y a

A résolu


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

plus de 6 ans il y a

A résolu


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

plus de 6 ans il y a

A résolu


The proportion of NaN in the data
If NaN occupies less than half of the input data, return 1, otherwise return 0. eg. input x = [1 2 NaN ; 4 NaN 6] >>> out...

plus de 6 ans il y a

A résolu


Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

plus de 6 ans il y a

A résolu


Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

plus de 6 ans il y a

A résolu


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

plus de 6 ans il y a

A résolu


The maximum sum of squares (testing)
Create a function file with an input maxval to determine the maximum number of terms for the series 1^2 + 2^2 + 3^2 + ... such t...

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

plus de 6 ans il y a

A résolu


Adding Numbers
Add the input numbers to the original.

plus de 6 ans il y a

A résolu


Determine the number of correct and incorrect answers
In a Multiple Choice Question Test, you are to sort out answer from 4 samples, one of them is correct answer. There are 50 quest...

plus de 6 ans il y a

A résolu


Find the missing numbers.
Total *N* numbers are in the series of natural numbers ( *1,2,3,...,N* ). The input is an array (unsorted) of those natural num...

plus de 6 ans il y a

A résolu


Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

plus de 6 ans il y a

A résolu


ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

plus de 6 ans il y a

A résolu


"Percentages may not total 100 due to rounding"
*Percentages* are commonly *rounded* when presented in tables. As a result, the sum of the individual numbers does not always a...

plus de 6 ans il y a

A résolu


Normie Function (2)
Another _Normie Function_ defined as _f(n)= f(n-1)+f(n-2)+f(n-3)_ , *when n>3* and _1_ , *when n<=3*. *Find the nth term of this...

plus de 6 ans il y a

A résolu


Normie Function
So, I built a function and gave it a name- _Normie_. *Find the nth term of Normie function:* _f(n)= 1*f(n-1)+ 2*f(n-3)+ 3_ , *...

plus de 6 ans il y a

A résolu


subtraction of two nos
given a and b, subtract and give the answer

plus de 6 ans il y a

A résolu


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

plus de 6 ans il y a

A résolu


Set a diagonal
Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...

plus de 6 ans il y a

Charger plus