문제를 풀었습니다


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

5년 초과 전

문제를 풀었습니다


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

5년 초과 전

문제를 풀었습니다


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

5년 초과 전

문제를 풀었습니다


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

5년 초과 전

문제를 풀었습니다


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

5년 초과 전

문제를 풀었습니다


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

5년 초과 전

문제를 풀었습니다


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

5년 초과 전

문제를 풀었습니다


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

5년 초과 전

문제를 풀었습니다


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

5년 초과 전

문제를 풀었습니다


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].

5년 초과 전

문제를 풀었습니다


row removal
Consider a matrix and remove the first row of the matrix.

5년 초과 전

문제를 풀었습니다


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

5년 초과 전

문제를 풀었습니다


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

5년 초과 전

문제를 풀었습니다


Separate even from odd numbers in a vector - without loops
*Without using loops*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the...

5년 초과 전

문제를 풀었습니다


Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

5년 초과 전

문제를 풀었습니다


Split a given string from the first instance of a given character
A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

5년 초과 전

문제를 풀었습니다


Now 20% off!
Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of Septem...

5년 초과 전

문제를 풀었습니다


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

5년 초과 전

문제를 풀었습니다


Select primes from the matrix.
Select primes from the matrix.

5년 초과 전

문제를 풀었습니다


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

5년 초과 전

문제를 풀었습니다


Divisible by 4
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

5년 초과 전

문제를 풀었습니다


Saving MATLAB session to a file
How to save MATLAB session to a file?

5년 초과 전

문제를 풀었습니다


multiply an array by its position number
You have given an array. Multiply an array by its position number

5년 초과 전

문제를 풀었습니다


Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

5년 초과 전

문제를 풀었습니다


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

5년 초과 전

문제를 풀었습니다


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

5년 초과 전

문제를 풀었습니다


Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

5년 초과 전

문제를 풀었습니다


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

5년 초과 전

문제를 풀었습니다


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

5년 초과 전

문제를 풀었습니다


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

5년 초과 전

더 보기