Gelöst


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

mehr als ein Jahr vor

Gelöst


Global usage
This Challenge is to utilize Global variables. Global variables are risky as the subroutine may inadvertently and unwantingly...

mehr als ein Jahr vor

Gelöst


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

mehr als ein Jahr vor

Gelöst


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

mehr als ein Jahr vor

Gelöst


Multiply two polynomials p and q given in in vector representation.
Multiply two polynomials p and q given in vector representation. Example p=[-2 0 1 -1 3 2] q=[1 0 -1 2 ...

mehr als ein Jahr vor

Gelöst


Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)

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

Gelöst


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

mehr als ein Jahr vor

Gelöst


Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

mehr als ein Jahr vor

Gelöst


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

mehr als ein Jahr vor

Gelöst


Degrees to Radian
Convert degrees to radians

mehr als ein Jahr vor

Gelöst


Datetime basics
Generate the datetime scalar representing the current date

mehr als ein Jahr vor

Gelöst


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

mehr als ein Jahr vor

Gelöst


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

mehr als ein Jahr vor

Gelöst


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

mehr als ein Jahr vor

Gelöst


Product of all elements in an array
Compute the product of all elements in an array.

mehr als ein Jahr vor

Gelöst


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

mehr als ein Jahr vor

Gelöst


03 - Matrix Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

mehr als ein Jahr vor

Gelöst


Negative Infinity
Round the given array a towards negative infinity.

mehr als ein Jahr vor

Gelöst


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

mehr als ein Jahr vor

Gelöst


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

mehr als ein Jahr vor

Gelöst


Find 0 in array
Given array find where there 0 is.

mehr als ein Jahr vor

Gelöst


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

mehr als ein Jahr vor

Gelöst


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

mehr als ein Jahr vor

Gelöst


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

mehr als ein Jahr vor

Gelöst


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

mehr als ein Jahr vor

Gelöst


Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

mehr als ein Jahr vor

Gelöst


Opposite task convert string hexadecimal numbers array into array of decimal numbers .
Opposite task convert string hexadecimal numbers array into array of decimal numbers . Example x=[ '208'; '209'; '20A'; ...

mehr als ein Jahr vor

Mehr laden