Gelöst


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

mehr als ein Jahr vor

Gelöst


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

mehr als ein Jahr vor

Gelöst


Kelvin to Celsius
Degrees Celsius = degrees Kelvin - 273.15. Given a temperature in Kelvin, return the equivalent temperature in Celsius.

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr 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 ein Jahr vor

Gelöst


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

mehr als ein Jahr vor

Gelöst


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

mehr als ein Jahr vor

Gelöst


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

mehr als ein Jahr vor

Gelöst


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

mehr als ein Jahr vor

Gelöst


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Remove the first, third and fifth rows of a matrix
Given a matrix x with at least five rows, return a matrix y that includes all rows of x except for th 1st, the 3rd and 5th. E...

mehr als ein Jahr vor

Gelöst


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

mehr als ein Jahr vor

Gelöst


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

mehr als ein Jahr vor

Gelöst


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

mehr als ein Jahr vor

Gelöst


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

mehr als ein Jahr vor

Gelöst


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

mehr als ein Jahr vor

Gelöst


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

mehr als ein Jahr vor

Gelöst


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

mehr als ein Jahr vor

Gelöst


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

mehr als ein Jahr vor

Gelöst


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

mehr als ein Jahr vor

Gelöst


Area of square
Find the area of a square whose diagonal length is given as x.

mehr als ein Jahr vor

Gelöst


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

mehr als ein Jahr vor

Gelöst


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

mehr als ein Jahr vor

Gelöst


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

mehr als ein Jahr vor

Gelöst


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

mehr als ein Jahr vor

Gelöst


Min of a Matrix
Return the minimum value in the given matrix.

mehr als ein Jahr vor

Mehr laden