Feeds
已解决
Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...
2 months 前
已解决
Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]
2 months 前
已解决
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
2 months 前
已解决
Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...
2 months 前
已解决
Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11
2 months 前
已解决
Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>
2 months 前
已解决
Normalizing a vector
Normalizing a set of values is an important operation in mathematics, consisting in affinely transforming a set of values in an ...
2 months 前
已解决
imaginary results
Return the value of the imaginary number i to the power of input argument n.
2 months 前
已解决
Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...
2 months 前
已解决
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
2 months 前
已解决
Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...
2 months 前
已解决
Compute the harmonic numbers
The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...
2 months 前
已解决
Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...
2 months 前
已解决
Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...
2 months 前
已解决
Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...
2 months 前
已解决
Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...
2 months 前
已解决
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.
2 months 前
已解决
Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55
2 months 前
已解决
DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...
2 months 前
已解决
Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product
2 months 前
已解决
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
2 months 前
已解决
Cube root of max value in a vector
Find the cube root of the maximum value in a vector
2 months 前
已解决
Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].
2 months 前

