문제를 풀었습니다


Find argmax of a function
You are given vectors x and y (=f(x)). Return the element of x for which f(x) is maximized.

5년 초과 전

문제를 풀었습니다


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

5년 초과 전

문제를 풀었습니다


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

5년 초과 전

문제를 풀었습니다


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

5년 초과 전

문제를 풀었습니다


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

5년 초과 전

문제를 풀었습니다


Substring Extraction
In a given string, find the substring between Start_string and End_string. You will have to include or exclude the Start_str...

5년 초과 전

문제를 풀었습니다


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

5년 초과 전

문제를 풀었습니다


Datetime basics
Generate the datetime scalar representing the current date

5년 초과 전

문제를 풀었습니다


function to compute root mean square of first nn positive odd integers
Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive ...

5년 초과 전

문제를 풀었습니다


Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

5년 초과 전

문제를 풀었습니다


ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

5년 초과 전

문제를 풀었습니다


surface areas of a cylinder
There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

5년 초과 전

문제를 풀었습니다


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

5년 초과 전

문제를 풀었습니다


generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

5년 초과 전

문제를 풀었습니다


Check for keywords
If the entered string is a MATLAB keyword, return true else false

5년 초과 전

문제를 풀었습니다


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

5년 초과 전

문제를 풀었습니다


Basic matrix operations using standard MATLAB commands
Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

5년 초과 전

문제를 풀었습니다


Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

5년 초과 전

문제를 풀었습니다


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

5년 초과 전

문제를 풀었습니다


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

5년 초과 전

문제를 풀었습니다


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

5년 초과 전

문제를 풀었습니다


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

5년 초과 전

문제를 풀었습니다


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

5년 초과 전

문제를 풀었습니다


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

5년 초과 전

문제를 풀었습니다


Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

5년 초과 전

문제를 풀었습니다


Permutation Via Multiplication
Given two numbers a and b, determine if the product ab is a permutation of the digits of a. For example, this is always true for...

5년 초과 전

문제를 풀었습니다


make histogram
You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself! For the cheaters wanti...

5년 초과 전

문제를 풀었습니다


Make combination of two given matrices.
Make a combination of the two given matrices as a given example. Example: input1 = [1 2 3; 4 5 6]; input2 = [7 8; 9 10...

5년 초과 전

문제를 풀었습니다


Reverse CHECKBOX MATRIX with 69
Create a reverse checkbox matrix with '69'. Where the size is the input and output will be a square checkbox matrix. Exa...

5년 초과 전

문제를 풀었습니다


SHIFT REGISTER
INPUT IS DECIMAL NUMBER. CONVERT IT INTO A BINARY SEQUENCE. THEN SHIFT THE SEQUENCE BY AN AMOUNT OF GIVEN NUMBER OF BITS. FOR E...

5년 초과 전

더 보기