A résolu


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

2 jours il y a

A résolu


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

2 jours il y a

A résolu


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

2 jours il y a

A résolu


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

2 jours il y a

A résolu


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

2 jours il y a

A résolu


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

2 jours il y a

A résolu


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

2 jours il y a

A résolu


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

2 jours il y a

A résolu


Solve Linear equations
Solve Linear equations Example: x+y=2 and x+2y=3, then x and y equal to 1.

2 jours il y a

A résolu


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

2 jours il y a

A résolu


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

2 jours il y a

A résolu


Interior angles
Find the sum of interior angles for polygon of x sides.

2 jours il y a

A résolu


prime test 2
enter the only non prime,non composite number

2 jours il y a

A résolu


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

2 jours il y a

A résolu


Box!
Given a box, find the volume of the cube. With each side = a.

2 jours il y a

A résolu


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

2 jours il y a

A résolu


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

2 jours il y a

A résolu


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

2 jours il y a

A résolu


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

2 jours il y a

A résolu


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

2 jours il y a

A résolu


Display positive elements of matrix.
Display positive elements of matrix.

2 jours il y a

A résolu


Matlab Basics II - Determine if an array has a 3rd dimension
For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

2 jours il y a

A résolu


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

2 jours il y a

A résolu


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

2 jours il y a

A résolu


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

2 jours il y a

A résolu


Upper triangular matrix
Create a function to retrieve the upper triangular matrix of a matrix (without using tril). The matrix will always be square. ...

2 jours il y a

A résolu


Normalize by maximum
Subtract the maximum value in a column from the corresponding columns of a matrix.

2 jours il y a

A résolu


Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

2 jours il y a

A résolu


Sum two matrices
Take two incoming matrices, and sum them

2 jours il y a

A résolu


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

2 jours il y a

Charger plus