Resuelto


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

más de 3 años hace

Resuelto


Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

más de 3 años hace

Resuelto


Center of mass
Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

más de 3 años hace

Resuelto


easy problem
Find the last element of the array

más de 3 años hace

Resuelto


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

más de 3 años hace

Resuelto


calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

más de 3 años hace

Resuelto


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

más de 3 años hace

Resuelto


Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Example: in = magic(5) in = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

más de 3 años hace

Resuelto


Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

más de 3 años hace

Resuelto


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

más de 3 años hace

Resuelto


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

más de 3 años hace

Resuelto


Parallel vectors
Return true or false depending on whether 2 vectors are parallel or not. Vectors can be 2 or 3 dimensional. The origin is not c...

más de 3 años hace

Resuelto


Largest Prime Number
Given a matrix X, find the largest prime number in X.

más de 3 años hace

Resuelto


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

más de 3 años hace

Resuelto


Radians to Degrees
Convert radians to degrees.

más de 3 años hace

Resuelto


area

más de 3 años hace

Resuelto


Log of a number
Write a script that will give the log of x as output.

más de 3 años hace

Resuelto


find whether it is prime or not
For a given number find if its prime

más de 3 años hace

Resuelto


collision
several cars (n) were involved in this collision, the input matrix (vm) has n rows and two columns, first column for velocity an...

más de 3 años hace

Resuelto


Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

más de 3 años hace

Resuelto


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

más de 3 años hace

Resuelto


UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

más de 3 años hace

Resuelto


Sum of integers numbers
Sum of the numbers from 1 to 100

más de 3 años hace

Resuelto


The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...

más de 3 años hace

Resuelto


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

más de 3 años hace

Resuelto


Degrees to Radian
Convert degrees to radians

más de 3 años hace

Resuelto


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 ]

más de 3 años hace

Resuelto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

más de 3 años hace

Cargar más