Feeds
문제를 풀었습니다
AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...
2일 전
문제를 풀었습니다
Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.
2일 전
문제를 풀었습니다
If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.
2일 전
문제를 풀었습니다
Calculate Requirement Margin
Engineering requirements often specify a limit, while the actual system performance may be better or worse than that limit. Giv...
3일 전
문제를 풀었습니다
Check Requirement Compliance
A system requirement specifies a maximum allowable value for a system parameter.Given a set of measured values and the correspon...
3일 전
문제를 풀었습니다
Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...
4일 전
문제를 풀었습니다
Geometric Compression Ratio
The geometric compression ratio CR is the ratio of the total cylinder volume at BDC to the clearance volume at TDC. It is one ...
5일 전
문제를 풀었습니다
Volumetric efficiency
Volumetric efficiency measures how well an engine breathes. The ratio of the actual air mass drawn in per cycle to the theoreti...
5일 전
문제를 풀었습니다
Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...
10일 전
문제를 풀었습니다
Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....
11일 전
문제를 풀었습니다
Vandermonde Matrix
Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...
12일 전
문제를 풀었습니다
Tent matrix
Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...
13일 전
문제를 풀었습니다
Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. For...
16일 전
문제를 풀었습니다
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...
17일 전
문제를 풀었습니다
Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The values of B are in the same order a...
18일 전
문제를 풀었습니다
center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...
19일 전
문제를 풀었습니다
Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...
19일 전
문제를 풀었습니다
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
23일 전
문제를 풀었습니다
De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...
23일 전
문제를 풀었습니다
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...
24일 전
문제를 풀었습니다
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...
25일 전
문제를 풀었습니다
Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...
26일 전
문제를 풀었습니다
Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...
27일 전
문제를 풀었습니다
Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...
27일 전
문제를 풀었습니다
How unique?
Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...
대략 1개월 전
문제를 풀었습니다
Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...
대략 1개월 전



