# David Hill

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

Working as Undergraduate Research Assistant in the field of Computational Photonics

**Statistics**

RANK**45**

of 250,022

REPUTATION**3,484**

CONTRIBUTIONS

**0** Questions

**1,435** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**384**

RANK**3,015** of 17,371

REPUTATION**479**

AVERAGE RATING**4.80**

CONTRIBUTIONS**19** Files

DOWNLOADS **171**

ALL TIME DOWNLOADS**3525**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Time reverse indices

Time reverse the index values as follows IndexIn = [7 1 0] IndexOut = [7 6 0] Note that the indices are zero based and so...

17 hours ago

Solved

Wordle

Wordle is an english game where you need to guess a 5 letter word. For each guess you'll receive a feedback for the placement of...

17 hours ago

Solved

Determine Fundamental Solution of Pell Equation

Given, a positive value (d), determine the fundamental solution [x, y] of the Pell equation: x^2 - d*y^2 = 1. Provide character...

1 day ago

Problem

Determine Fundamental Solution of Pell Equation

Given, a positive value (d), determine the fundamental solution [x, y] of the Pell equation: x^2 - d*y^2 = 1. Provide character...

1 day ago | 1 | 2 solvers

Solved

expand intervals vol.3

This is the next problem after <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528> and <http://www.mathworks.co.u...

2 days ago

Solved

return row and column indices given 2 values which define a range

Inspired by problem <http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice> Inputs: - ...

2 days ago

Solved

Max Change in Consecutive Elements

If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

2 days ago

Solved

remove single elements

Given a vector of integers, remove the elements that have appeared only once. The output elements should be in exact order as th...

2 days ago

Solved

Still more miles to go before I sleep

It's time for more odometer fun. Last problem, my car's odometer hit 56789. It's coming up on 111111 now, which (barring a maj...

3 days ago

Solved

Permutation Via Multiplication

Given two numbers a and b, determine if the product ab is a permutation of the digits of a. For example, this is always true for...

3 days ago

Solved

Smallest n, for n! to have m trailing zero digits

For given positive integer n, its factorial often has many trailing zeros, in other words many factors of 10s. In order for n! t...

3 days ago

Solved

The number of trailing zero digit of a factorial

For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

3 days ago

Difference Calculation between current value and a specified prior value

Not sure exactly what you are after, an example would be helpful. B=(x(1:10)-x(10:19))./x(10:19);

3 days ago | 0

Count the number of times a value repeats between certain rows in a matrix.

A=[2,5,15,65,102;2,65,1,105,55;65,104,15,19,5]; i=A(1,ismember(A(1,:),A(2,:)));

3 days ago | 0

Solved

Sum of two number using (regexp, varargin) comand?

Sum two number a &b and get there result in c using the rexp and varargin comand.

3 days ago

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

3 days ago | 0

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

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

4 days 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

4 days ago

Solved

Basic Quadratic Equation

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

4 days 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

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

4 days ago

Solved

Nth root of a number

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

4 days 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

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

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

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

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

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

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

4 days ago