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...
8일 전
문제를 풀었습니다
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]
8일 전
문제를 풀었습니다
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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
8일 전
문제를 풀었습니다
Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>
8일 전
문제를 풀었습니다
Normalizing a vector
Normalizing a set of values is an important operation in mathematics, consisting in affinely transforming a set of values in an ...
8일 전
문제를 풀었습니다
imaginary results
Return the value of the imaginary number i to the power of input argument n.
8일 전
문제를 풀었습니다
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: ...
8일 전
문제를 풀었습니다
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 ...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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.
8일 전
문제를 풀었습니다
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
8일 전
문제를 풀었습니다
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...
8일 전
문제를 풀었습니다
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
8일 전
문제를 풀었습니다
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
8일 전
문제를 풀었습니다
Cube root of max value in a vector
Find the cube root of the maximum value in a vector
8일 전
문제를 풀었습니다
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].
8일 전

