Solved


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

2 years ago

Solved


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

2 years ago

Solved


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

2 years ago

Solved


Back to basics - mean of corner elements of a matrix
Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

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

2 years ago

Solved


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

2 years ago

Solved


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

2 years ago

Solved


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

2 years ago

Solved


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

2 years ago

Solved


Replace Nan!
Replace Nan in the given vector(v) with 9999.

2 years ago

Solved


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

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

2 years ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

2 years ago

Solved


first element of matrix
find the first elements of a column matrix

2 years ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

2 years ago

Solved


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

2 years ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

2 years ago

Solved


Converts numbers into characters
Converts numbers into characters

2 years ago

Solved


Find the max element of the array
Find the max element of the array

2 years ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

2 years ago

Solved


to the 2 all elements
to the 2 all elements

2 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

2 years ago

Solved


Double all elements in the array
Duplicate all elements in the array

2 years ago

Solved


calculate the length of matrix
input 1 array, calculate the length

2 years ago

Solved


Draw a '7' in a zero matrix!

2 years ago

Solved


Energy Conversion 2

2 years ago

Solved


Energy Conversion 1

2 years ago

Solved


Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

2 years ago

Solved


Area Conversion 2

2 years ago

Solved


Area Conversion 1

2 years ago

Load more