Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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.

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


Adding Numbers
Add the input numbers to the original.

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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_ , *...

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Solved


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

meer dan 6 jaar ago

Load more