解決済み


convert matrix to single column
given any matrix, convert it to single column

約3年 前

解決済み


Inner product of two vectors
Find the inner product of two vectors.

約3年 前

解決済み


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

約3年 前

解決済み


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

約3年 前

解決済み


Square root of a number
Write a code that will output the square root of x.

約3年 前

解決済み


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

約3年 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

約3年 前

解決済み


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

約3年 前

解決済み


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

約3年 前

解決済み


Convert radians to degrees
Given input in radians, output to degrees

約3年 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

約3年 前

解決済み


Create a vector
Create a vector from 0 to n by intervals of 2.

約3年 前

解決済み


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

約3年 前

解決済み


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

約3年 前

解決済み


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

約3年 前

解決済み


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

約3年 前

解決済み


Square a Number
Given an input x, return y, which is equal to the square of x.

約3年 前

解決済み


Product of Array
Given an array of numbers. Get the product of the array.

約3年 前

解決済み


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

約3年 前

解決済み


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

約3年 前

解決済み


Remove the Zero
Given an array n, remove all zeros

約3年 前

解決済み


Sum two matrices
Take two incoming matrices, and sum them

約3年 前

解決済み


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

約3年 前

解決済み


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

約3年 前

解決済み


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

約3年 前

解決済み


square root
Find the square root (y) of an input (x).

約3年 前

解決済み


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

約3年 前

解決済み


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

約3年 前

解決済み


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

約3年 前

解決済み


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

約3年 前

さらに読み込む