문제를 풀었습니다

Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

약 6년 전

문제를 풀었습니다

Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...

약 6년 전

문제를 풀었습니다

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

약 6년 전

문제를 풀었습니다

Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

약 6년 전

문제를 풀었습니다

Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

약 6년 전

문제를 풀었습니다

Writing a nested function: BMI calculation
Write a nested function CalculateBMI that assigns bmiValue given a user's weight and height. Use the following equations to calc...

약 6년 전

문제를 풀었습니다

Eight Queens Solution Checker
Write a function to verify whether an arrangement of queens on a chessboard is a valid solution to the classic <http://en.wikipe...

약 6년 전

문제를 풀었습니다

construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

약 6년 전

문제를 풀었습니다

Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

약 6년 전

문제를 풀었습니다

Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

약 6년 전

문제를 풀었습니다

Happy 2013...
Happy 2013, everyone! An interesting tidbit about 2013 is that it is the first year since 1987 to contain four different digits...

약 6년 전

문제를 풀었습니다

Matrix with different incremental runs
Given a vector of positive integers a (>=0); How does one create the matrix where the ith column contains the vector 1:a(i) poss...

약 6년 전

문제를 풀었습니다

Modify an array's elements
Write a for loop that iterates from 1 to numberSamples to double any element's value in dataSamples that is less than minValue. ...

약 6년 전

문제를 풀었습니다

Row array troopCookieSales contains the number of boxes of cookies sold by each troop member. Assign totalSales with the sum of ...

약 6년 전

문제를 풀었습니다

Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

약 6년 전

문제를 풀었습니다

We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

약 6년 전

문제를 풀었습니다

Luggage delivery
Assign deliveryCost with the cost to deliver a piece of baggage weighing baggageWeight. The service charges twenty dollars for ...

약 6년 전

문제를 풀었습니다

frame of the matrix
Given the matrix M, return M without the external frame.

약 6년 전

문제를 풀었습니다

Health app
A health app records a user's weight and displays the change in weight from the previous measurement to the next. Assign weightC...

약 6년 전

문제를 풀었습니다

Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

약 6년 전

문제를 풀었습니다

Currency conversion
A currency exchange booth offers an exchange rate of 119.771 Japanese yen for 1 US dollar. The currency exchange booth rounds do...

약 6년 전

문제를 풀었습니다

Compute change
A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. Given amountToChange, ...

약 6년 전

문제를 풀었습니다

Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

약 6년 전

문제를 풀었습니다

does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

약 6년 전

문제를 풀었습니다

Times 3 problem
When you enter the number, it should return the number multiplied by 3

약 6년 전

문제를 풀었습니다

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

약 6년 전

문제를 풀었습니다

sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

약 6년 전

문제를 풀었습니다

2倍してみよう - ここからスタート！

약 6년 전

문제를 풀었습니다

Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

약 6년 전

문제를 풀었습니다

Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

약 6년 전