解決済み


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

3年以上 前

解決済み


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.

3年以上 前

解決済み


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

3年以上 前

解決済み


easy problem
Find the last element of the array

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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)

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


Radians to Degrees
Convert radians to degrees.

3年以上 前

解決済み


area

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


Degrees to Radian
Convert degrees to radians

3年以上 前

解決済み


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 ]

3年以上 前

解決済み


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

3年以上 前

さらに読み込む