Feeds
문제를 풀었습니다
Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...
거의 2년 전
문제를 풀었습니다
Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...
거의 2년 전
문제를 풀었습니다
Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...
거의 2년 전
문제를 풀었습니다
means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a ve...
거의 2년 전
문제를 풀었습니다
Find my secret function I
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=[2 5 6 8 9] ---- >>> o...
거의 2년 전
문제를 풀었습니다
Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...
거의 2년 전
문제를 풀었습니다
Summing Rows and Columns
Create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last...
거의 2년 전
문제를 풀었습니다
Dartboard Average II
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...
거의 2년 전
문제를 풀었습니다
generate the matrix
given 3 inputs e.g [2,3,4] -- generate a matrix like below -- [2 2 0 0 0 0 0 0 0; 2 2 0 0 0 0 0 0 0; 0 0 3 3 3 0 0 0 0; 0 0...
거의 2년 전
문제를 풀었습니다
Gold/Silver Standard
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/8045-gold-standard Gold Standard> problem, suppose that yo...
거의 2년 전
문제를 풀었습니다
Gold Standard
Gold has long been used as currency and a standard for currency, due to its inherent value and rarity. Historical data for gold ...
거의 2년 전
문제를 풀었습니다
Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.
거의 2년 전
문제를 풀었습니다
Nth roots of unity
First, find the n nth roots of unity. eg if n = 6, find the n distinct (complex) numbers such that n^6 = 1. <https://en.wiki...
거의 2년 전
문제를 풀었습니다
Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...
거의 2년 전
문제를 풀었습니다
remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...
거의 2년 전
문제를 풀었습니다
Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...
거의 2년 전
문제를 풀었습니다
Linear Motion 7
A robot has a maximum rate of acceleration of a m/s2. If the robot starts from rest and reaches a velocity of v2 m/s. How far ha...
거의 2년 전
문제를 풀었습니다
Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...
거의 2년 전
문제를 풀었습니다
Sort (high on middle, low on ends)
Sort the vector of numbers in order low-high-low. Even numbers appear in ascending order on the left and odd numbers appear in d...
거의 2년 전
문제를 풀었습니다
Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array: Given this array Return...
거의 2년 전
문제를 풀었습니다
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 ...
거의 2년 전
문제를 풀었습니다
How many digits are there?
Input(s) - any string Output(n) - number of digits within string s
거의 2년 전
문제를 풀었습니다
Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...
거의 2년 전
문제를 풀었습니다
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...
거의 2년 전
문제를 풀었습니다
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
거의 2년 전
문제를 풀었습니다
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
거의 2년 전
문제를 풀었습니다
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
거의 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년 전




