문제를 풀었습니다


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

9년 초과 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

9년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

9년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

9년 초과 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

9년 초과 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

9년 초과 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

9년 초과 전

답변 있음
How to remove a pattern in a table column
assuming T - your table, and n - number of column containing these strings you can do as follows: T{:, n} = regexprep(T{:, ...

9년 초과 전 | 2

| 수락됨

문제를 풀었습니다


kmph to mph converter
Convert the speed in miles/hour to km/hour.

9년 초과 전

문제를 풀었습니다


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

9년 초과 전

답변 있음
How to do a fft from a sine signal with hanning function
You can try starting with something like this fs = 44100; % sampling frequency T = 1; % period, 1 second n = T*fs; ...

9년 초과 전 | 0

문제를 풀었습니다


Find unique number in input
Find value that occurs in odd number of input elements.

9년 초과 전

답변 있음
Working and non Working hours
Yes, you can. For example: % assuming your data in variable called datecolumn daytime = timeofday(datecolumn); openi...

9년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

9년 초과 전

문제를 풀었습니다


Linear system of equations
Solve the system of equations in three variables.

9년 초과 전

문제를 풀었습니다


Simpsons's rule (but not Homer Simpson)
I wonder what Homer Simpson would have thought of Simpson's rule? Somehow I doubt his thoughts would have included the phrase Ne...

9년 초과 전

문제를 풀었습니다


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

9년 초과 전

문제를 풀었습니다


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

9년 초과 전

답변 있음
Algebra function with table and vector
If you want to work on tables in MATLAB functions <http://www.mathworks.com/help/matlab/ref/varfun.html varfun> and <http://www....

9년 초과 전 | 1

문제를 풀었습니다


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

9년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9년 초과 전

문제를 풀었습니다


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

9년 초과 전

문제를 풀었습니다


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s= [ 195 125 260 440 395 290] and you have amount of ...

9년 초과 전

문제를 풀었습니다


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

9년 초과 전

문제를 풀었습니다


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

9년 초과 전

문제를 풀었습니다


Roots of a quadratic equation.
Determine the roots of a quadratic equation., if coefficients a,b and c are given.

9년 초과 전

문제를 풀었습니다


Elastic Collision 001: 1-D
Elastic Collision of two particles. <http://en.wikipedia.org/wiki/Elastic_collision wiki Elastic Collision> Solve Conservat...

9년 초과 전

문제를 풀었습니다


Remove TeX from string
Matlab’s TeX support in figure windows is great for displaying information in a visually appealing way. However, many of the TeX...

9년 초과 전

문제를 풀었습니다


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

9년 초과 전

더 보기