Community Profile

photo

David Hill


Last seen: Today Active since 2017

Electrical Engineering with minors in Computer Science, Mathematics, and Creative Writing.

Working as Undergraduate Research Assistant in the field of Computational Photonics

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 24 Month Streak
  • Revival Level 2
  • Promoter
  • Sequences And Series II Master
  • Personal Best Downloads Level 4
  • 5-Star Galaxy Level 4
  • Cody5 Easy Master
  • Number Manipulation II Master
  • Draw Letters
  • Cody Problems in Japanese Master

View badges

Content Feed

Answered
why doesnt it work
function x = ss_dtmf(number,dt,nd,np) x=[]; for i=1:length(number) x = [x,ss_dtmf1(number(i),0:nd:dt),ss_dtmf1(12,0:np:dt...

alrededor de 11 horas ago | 0

Answered
Split a vector into 2 oscillating vectors?
v1=zeros(1,500000); v2=zeros(1,500000); for k=1:100 v1((k-1)*5000+1:k*5000)=v((2*(k-1))*5000+1:(2*(k-1)+1)*5000); v2((k-...

alrededor de 12 horas ago | 0

Solved


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

alrededor de 14 horas ago

Solved


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

alrededor de 14 horas ago

Solved


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

alrededor de 14 horas ago

Solved


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

alrededor de 14 horas ago

Solved


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

alrededor de 14 horas ago

Solved


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

alrededor de 14 horas ago

Solved


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

alrededor de 14 horas ago

Solved


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

alrededor de 14 horas ago

Solved


short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...

alrededor de 16 horas ago

Solved


Jack's hand in "Titanic" ♤
Given a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be care...

alrededor de 16 horas ago

Solved


Portfolio diversification: choose your stocks !
we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: st...

alrededor de 16 horas ago

Solved


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

alrededor de 17 horas ago

Solved


continuous compounding
what's the present value of having 100 dollars after n years given a continuously compounded rate i ? keep only 2 decimals pleas...

alrededor de 17 horas ago

Solved


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

alrededor de 17 horas ago

Solved


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

alrededor de 17 horas ago

Solved


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

alrededor de 17 horas ago

Solved


List the dopey numbers
If vile numbers have binary representations that end with an even number of zeros (even vile), then numbers with binary represe...

1 día ago

Answered
Number of rows based on frequency of one integer and position of another integer
r=unique(matrix(:,2)); r=r(end-4:end); n=nnz(matrix(:,1)==10&ismember(matrix(:,2),r));

1 día ago | 0

Solved


Backgammon #4 - Dice Probabilities
Previous problems in this series have looked at how a backgammon board might be represented, and board positions manipulated and...

1 día ago

Solved


List the vile numbers
Evil numbers, the subject of Cody Problem 2733 have an even number of ones in their binary representations, whereas odious numbe...

1 día ago

Solved


Basic: fft
Calculate the value using fft

2 días ago

Solved


Find Prime Numbers
Find prime numbers in a vector and return them in increasing order Example: [2 51 8 65 19] a = [19 51]

2 días ago

Solved


Matrix Pattern 6

2 días ago

Solved


Matrix Pattern 2

2 días ago

Solved


Easy Sequence 61: Wide Pythagorean Triangles
An integer-sided right triangle with sides , is called a "wide Pythagorean triangle", if , and . Write a program that counts a...

4 días ago

Solved


Easy Sequences 63: Base-63 Arithmetic Functions
In this exercise we are required to implement 7 basic 'unsigned integer' arithmetic functions in base-63: to63(x) - convert...

5 días ago

Solved


Easy Sequences 57: "Pretty-gorean" Triangles?
A positive integer is called a regular number, if and only if there exist a non-negative integer , such that . For some reason...

6 días ago

Solved


Easy Sequences 59: Almost Twin Primes
A positive integer pair , is called an "almost twin prime pair", if one of the pair is a prime and the other is either a prime o...

9 días ago

Load more