Solved

Read it !

read and return the following word. 'M M A TTTTTTTTTL A BBB ' 'MM MM A A T L ...

3 years ago

Solved

String Delimination and Outputting

In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

3 years ago

Solved

Analyze observation data

Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

3 years ago

Solved

Whole Number Concatenator

Write a function that concatenates whole numbers. For example: numcat(111,222) should return 111222 numcat(1,2,3,4,5) s...

3 years ago

Solved

Capitilize the first letter of every word in a string

For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

3 years ago

Solved

Pandigital number n°1 (Inspired by Project Euler 32)

A little warm-up to begin... An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For ex...

3 years ago

Solved

Sort (high on middle, low on ends)

Sort the vector of numbers in order low-high-low. Even numbers appear in ascending order on the left and odd numbers appear in d...

3 years ago

Solved

Elements with highest local average

Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

3 years ago

Solved

Find indices of diagonal elements

Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

3 years ago

Solved

design a magic matrix without using the command magic.

Like magic(4) = 16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1

3 years ago

Solved

Change on Spiral Matrix

n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

3 years ago

Solved

Zero Cross

Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

3 years ago

Solved

Electrical Diode Current Calculation

In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

3 years ago

Solved

Probability of red tulips

I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

3 years ago

Solved

Find the mean of two vectors

Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

3 years ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

3 years ago

Solved

Deriving a function using the difference quotient

Write a function that evaluates the derivative of a function in a given point using the well-know formula of the difference quot...

3 years ago

Solved

Select every other element of a matrix

Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

3 years ago

Solved

Areas

Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...

3 years ago

Solved

counting for loop

Complete the function below using a for loop to count from 3 to N by 2. For example, if N is 10, count 3, 5, 7, 9 and stop. Fo...

3 years ago

Solved

Pad zero between every adjacent values of the vector.

you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

3 years ago

Solved

Percentage profit:2

If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

3 years ago

Solved

Vector Element Multiplication

Take two incoming vectors, and output the element wise multiplication of the vectors.

3 years ago

Solved

Simple Vector Addition

Take two incoming vectors and output the sum of the two vectors

3 years ago

Solved

Dudeney Numbers: Numbers which are the cube of their decimal sum

From Wikipedia: _A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equa...

3 years ago