Solved

Check if inputted variable is a string or a number

Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

12 months ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

12 months ago

Solved

Replace 0 indices in array with 1's

Take a incoming vector, and replace 0's with ones

12 months ago

Solved

Find the index of the lowest number in a matrix

Take a matrix, and find the [row cal] index of the lowest number

12 months ago

Solved

Vector Element Multiplication

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

12 months ago

Solved

More Simple String Concatenation

Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

12 months 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)

12 months ago

Solved

Temperature conversion

Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

12 months ago

Solved

Cell Counting: How Many Draws?

You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

12 months ago

Solved

Sum of Two Numbers

Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

12 months ago

Solved

Volume of a sphere given its surface area

You just measured its surface area, that is the input.

12 months ago

Solved

Rotate matrix by -90 degrees

Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

12 months ago

Solved

Change string to number

Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

12 months ago

Solved

Calculate some equation

Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

12 months ago

Solved

Save variables

a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

12 months ago

Solved

Next Higher Power of B

|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

12 months ago

Solved

Find out magnitude of vector

Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

12 months ago

Solved

Crate a vector of logarithmically spaced

Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

12 months ago

Solved

Convert Kilometers to Miles

Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

12 months ago