Solved

matrix of natural number

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

1 year ago

Solved

Create sequnce 1 4 9 16 25.........

Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

1 year ago

Solved

UICBioE240 problem 1.3

Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

1 year ago

Solved

UICBioE240 problem 1.18

exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

1 year ago

Solved

UICBioE240 problem 1.10

Find the number of cells in a bioreactor after a given time when doubling time is dd and initial number of cells is x. So if ...

1 year ago

Solved

UICBioE240 problem 1.2

Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

1 year ago

Solved

UICBioE240 problem 1.8

Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class. ...

1 year ago

Solved

UICBioE240 problem 1.9

Swap the first and last columns of a matrix. So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5]; ...

1 year ago

Solved

UICBioE240 problem 1.12

The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

1 year ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

1 year ago

Solved

Counting Sequence

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

1 year ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

1 year ago

Solved

Remove the two elements next to NaN value

The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

1 year ago

Solved

Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed

Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

1 year ago

Solved

Spiral Matrix

for a given integer n>=3, generate a matrix of nxn such that the value n^2 is at bottom left and its decreasing towards center ...

1 year ago

Solved

Reshape a Vector

Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

1 year ago

Solved

0<=x<=pi?

Check whether the given angle is between zero and pi. Return logical true or false.

1 year ago

Solved

Remove All elements less than 5

Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

1 year ago

Solved

Cumulative product of a vector

Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

1 year ago

Solved

Sum of unique multiples of 3 and 5

If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

1 year ago

Solved

Find the nearest prime

Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'. Example 1 If given 'n' is ...

1 year ago

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

1 year ago

Solved

Construct a string from letters and counts

Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

1 year ago