Community Profile

photo

Drew Weymouth


Cornell University

2011년부터 활동

I am a senior undergraduate studying Electrical and Computer Engineering at Cornell University with a music minor. I am an undergraduate TA for the course Intro to Computing Using MATLAB. My academic interests within my major lie primarily in signal processing.

My biggest MATLAB project has been developing a programmable audio synthesizer and music visualizer, with fellow Cornell undergraduate Andy Wang. Check out our YouTube channel here:
http://www.youtube.com/user/ScrollingMusic

통계

All
  • First Review
  • 5-Star Galaxy Level 2
  • First Submission
  • Revival Level 1
  • Knowledgeable Level 1
  • First Answer
  • Quiz Master
  • Commenter
  • Creator
  • Solver

배지 보기

Content Feed

보기 기준

문제를 풀었습니다


Find the list of all open files
In the test suite, I use <http://www.mathworks.com/help/matlab/ref/fopen.html fopen> to create new files. The task is to find th...

11년 초과 전

문제를 풀었습니다


Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

11년 초과 전

문제를 풀었습니다


Uniform binary crossover
Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

거의 12년 전

문제를 풀었습니다


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

거의 12년 전

문제를 풀었습니다


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

거의 12년 전

제출됨


wavdither
Exports audio data to a .wav file with dithering.

거의 12년 전 | 다운로드 수: 4 |

문제를 풀었습니다


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

거의 12년 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

거의 12년 전

문제를 풀었습니다


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

거의 12년 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

거의 12년 전

문제를 풀었습니다


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

거의 12년 전

문제를 풀었습니다


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

거의 12년 전

문제를 풀었습니다


Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

거의 12년 전

문제를 풀었습니다


"Low : High - Low : High - Turn around " -- Create a subindices vector
Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

거의 12년 전

문제를 풀었습니다


give nth decimal place of pi
max 15th place after the decimal point is ok for now

거의 12년 전

문제를 풀었습니다


Find matching parenthesis
One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

거의 12년 전

문제를 풀었습니다


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

거의 12년 전

문제를 풀었습니다


Set defaults
Write a function that computes the volume of a cube. The function should be able to accept three inputs: the length, width, and...

거의 12년 전

문제를 풀었습니다


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

거의 12년 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

거의 12년 전

문제를 풀었습니다


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

거의 12년 전

문제를 풀었습니다


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

거의 12년 전

문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

거의 12년 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

거의 12년 전

문제를 풀었습니다


Cell Array Inception?
Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kt...

거의 12년 전

문제


Cell Array Inception?
Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kt...

거의 12년 전 | 3 | 솔버 수: 28

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

거의 12년 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


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

대략 12년 전

더 보기