# 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**47**

of 242 558

REPUTATION**3 188**

CONTRIBUTIONS

**0** Questions

**1 334** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**349**

RANK**3 453** of 16 999

REPUTATION**390**

AVERAGE RATING**4.80**

CONTRIBUTIONS**18** Files

DOWNLOADS **139**

ALL TIME DOWNLOADS**2823**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How can I find same arrays in cell of arrays?

c=1; for m=1:41 for n=m+1:42 if isequal(A{m}(:,1:2),A{n}(:,1:2)) idx(c,:)=[m,n];%index pairs that have matchi...

1 jour ago | 0

How to retrieve the list of numbers from which the average of a normal simulation is derived?

n = 5000; %Number of Simulations, sample size x1 = 75:125; %Mean simulation range y1 = 1:40; %Standard Deviation range N=...

1 jour ago | 0

| accepted

How to do math to entirety of a vector?

[1:selectSpaces(1),diff(selectSpaces)+1:selectSpaces(2)];

1 jour ago | 0

Solved

Create a square matrix with given conditions

Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

3 jours ago

Solved

Set x value to each odd index of vector y.

Set x value to each odd index of vector y.

3 jours ago

Solved

Find the sines of an isosceles triangle when given its area and height

Find the sines of an isosceles triangle when given its area and height. For example, when A=60 and h=5, the result is [0.3752...

3 jours ago

Solved

Convert array of decimal numbers into hexadecimal numbers array.

Convert array of decimal numbers into hexadecimal numbers array. Example x =[ 32 33 34 35 36 37 38 ...

3 jours ago

Solved

Tridiagonal matrix

Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

3 jours ago

Solved

Calculate feeling temperature before climbing a mountain

I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

3 jours ago

Solved

Delete the column with all 0 !

Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

3 jours ago

Solved

Average of odd values

Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

3 jours ago

Solved

Average of even-numbered columns

Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

3 jours ago

Solved

Remove multiples of N

in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

3 jours ago

Solved

Binary Inversion

Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

3 jours ago

Solved

Count the numbers

In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

3 jours ago

Solved

Counting votes

x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

3 jours ago

Solved

Odd times even numbers in a matrix

First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

3 jours ago

Solved

Add the even numbers

Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

3 jours ago

Solved

Add the odd numbers

Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

3 jours ago

Solved

All odd - all even

All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

3 jours ago

Solved

Second smallest number

What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

3 jours ago

Solved

Odd times 3

Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

3 jours ago

Solved

Add the positive numbers

Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

3 jours ago

Solved

Easy Sequences 22: Sum of Proper Fractions

Let 'F' be the set of all proper fractions in lowest term, whose denominator is less than or equal 'd'. So, for d = 10, we have:...

4 jours ago

Solved

A matrix of introverts

You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...

5 jours ago

Solved

Determine value using Look-up table method

Given a set of 2 vectors x and y related in a certain way, you are supposed to find value of y (ydash) given a particular value ...

5 jours ago

How to reset a variable in a for loop?

Use indexing. X=1+rand(1,10); for i=1:10 Y=X(i)+5;%whatever you do. end

6 jours ago | 0