문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

대략 12년 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

대략 12년 전

문제


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

대략 12년 전 | 4 | 솔버 수: 697

문제를 풀었습니다


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

대략 12년 전

문제를 풀었습니다


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

대략 12년 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

대략 12년 전

제출됨


Matrix Surround Encoding
Encodes 5-channel surround-sound signal into stereo matrix-encoded signal based on Dolby PLII.

12년 초과 전 | 다운로드 수: 3 |

답변 있음
how to run .exe file in matlab
The built in function |system(command)| will execute the given command (a string) in a windows command prompt. So you might hav...

12년 초과 전 | 2

답변 있음
MATLAB code for Butterworth filter having sound as a input signal
MATLAB has a built in function |butter| in the Signal Processing Toolbox that will return coefficients for a Butterworth high- o...

12년 초과 전 | 1

| 수락됨

답변 있음
x.abs()?
Although your variable |x| is technically a MATLAB "class" ( |double| ), it does not have any methods associated with it. While...

12년 초과 전 | 0

답변 있음
Plot Title Problem
Escape it with the backslash. |title('Plot\_Dot')|

12년 초과 전 | 1

답변 있음
Trouble with For loop within If statement.
|if for| is not valid syntax. If you want to break out of the loop when the errors for all points are <= errmax, then the corr...

12년 초과 전 | 0

제출됨


Windows System Sounds
Play any Windows system sound from within MATLAB.

대략 13년 전 | 다운로드 수: 1 |

답변 있음
MATLAB one-liners
Read in an image and convert it to a grayscale, double matrix of data range 0..1 im= rgb2gray(double(imread('filename.jpg'))/...

대략 13년 전 | 0