A résolu


Volume of a Parallelepiped
Calculate the volume of a Parallelepiped given the vectors for three edges that meet at one vertex. A cube is a special case ...

2 jours il y a

A résolu


Similar Triangles - find the height of the tree
Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...

2 jours il y a

A résolu


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

2 jours il y a

A résolu


Area of Cylindrical Shell
Consider a cylinder with a non-zero thickness with an inner radius of r1 and an outer radius of r2. If the height of the cylinde...

2 jours il y a

A résolu


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

2 jours il y a

A résolu


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

2 jours il y a

A résolu


Area of rhombus
Calculate the rhombus area

2 jours il y a

A résolu


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

2 jours il y a

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

Charger plus