解決済み


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

2年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


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年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


Converts numbers into characters
Converts numbers into characters

2年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


to the 2 all elements
to the 2 all elements

2年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


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

2年以上 前

解決済み


Draw a '7' in a zero matrix!

2年以上 前

解決済み


Energy Conversion 2

2年以上 前

解決済み


Energy Conversion 1

2年以上 前

解決済み


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

2年以上 前

解決済み


Area Conversion 2

2年以上 前

解決済み


Area Conversion 1

2年以上 前

さらに読み込む