Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


Converts numbers into characters
Converts numbers into characters

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


to the 2 all elements
to the 2 all elements

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


Draw a '7' in a zero matrix!

mehr als 2 Jahre vor

Gelöst


Energy Conversion 2

mehr als 2 Jahre vor

Gelöst


Energy Conversion 1

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

Gelöst


Area Conversion 2

mehr als 2 Jahre vor

Gelöst


Area Conversion 1

mehr als 2 Jahre vor

Mehr laden