문제를 풀었습니다


Inner product of two vectors
Find the inner product of two vectors.

2일 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

2일 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

2일 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

2일 전

문제를 풀었습니다


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

2일 전

문제를 풀었습니다


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

2일 전

문제를 풀었습니다


Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

2일 전

문제를 풀었습니다


Parse me a Lisp
*Description* In Lisp and its variants, function calls are done using parenthesis where the first item in the parenthesis is ...

2일 전

문제를 풀었습니다


MATLAB 101: Tribonacci Sequence
Each number in the Tribonacci series is the sum of the three preceding ones. Sequence: 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, ... Writ...

2일 전

문제를 풀었습니다


MATLAB 101: Reverse a Vector
Write a MATLAB function that takes a 1D vector (either a row or a column vector) and returns the vector with its elements in exa...

2일 전

문제를 풀었습니다


MATLAB 101: Hypotenuse Calculator
Write a MATLAB function that accepts the base and height of a right-angled triangle (or arrays of bases and heights) and returns...

2일 전

문제를 풀었습니다


Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...

2일 전

문제를 풀었습니다


Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

2일 전

문제를 풀었습니다


Calculate the sum of two numbers x and y v2
This is inspired by the broken test suite of problem 59089. As in that problem, your task is simple: calculate the sum of two nu...

2일 전

문제를 풀었습니다


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

2일 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

3일 전

문제를 풀었습니다


Pair Primes
Let's define pair primes as follow; For 2 digits numbers: 11 and 17 are pair primes because both of them are 2 digits prime num...

4일 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

8일 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

8일 전

문제를 풀었습니다


Show me the shape of your array
Write a function that determines the shape of the input array x: Return 'square' if x has the same number of rows and colum...

9일 전

문제를 풀었습니다


Is the Matrix Square?
Write a function that determines whether the input matrix x is square. Return true if x has the same number of rows and columns...

9일 전

문제를 풀었습니다


Sum all elements of a vector or matrix without using sum()
Write a function that computes the sum of all elements of the input array v without using the built-in sum function. The input ...

9일 전

문제를 풀었습니다


Determine Matrix Dimensions Without Using some built-in MATLAB functions, version 2
Write a function that takes a 2D matrix/1D vector x as input and returns a row vector containing the number of rows and the numb...

9일 전

문제를 풀었습니다


Compute Radar Wavelength from Frequency
Radar systems operate at electromagnetic frequencies. The wavelength of the transmitted signal is related to the operating frequ...

9일 전

문제를 풀었습니다


Radar Target Distance Calculation
A radar system sends a short electromagnetic pulse toward a target and measures the elapsed time between transmission and recept...

9일 전

문제를 풀었습니다


Range Resolution of a Pulsed Radar
A pulsed radar transmits a rectangular pulse with duration tau seconds. Given the pulse duration, compute the radar range resolu...

9일 전

문제를 풀었습니다


Calculate Radar Pulse Energy
Compute the energy contained in a single radar pulse. The inputs are the peak power Pp (W) and the pulse width PW (s). The pulse...

9일 전

문제를 풀었습니다


Monostatic Radar Received Power Calculation
This problem aims to determine the received power of a monostatic radar system. The function takes as input the main radar param...

9일 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to find the logical indices o...

9일 전

문제를 풀었습니다


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

9일 전

더 보기