Community Profile # 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
• • • • • • • • • • • • #### Content Feed

View by

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

17 hours 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=...

18 hours ago | 0

| accepted

Creating m by 2 matrix
[a,b]=max(A,[],2); M=[a,b];

18 hours ago | 0

How to do math to entirety of a vector?
[1:selectSpaces(1),diff(selectSpaces)+1:selectSpaces(2)];

18 hours 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 * ...

2 days ago

Solved

Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

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

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

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

2 days ago

how inverse number ?
Output=2*abs(Input-2);

2 days ago | 1

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

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

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

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

2 days 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 days ago

Solved

Magnitude of a vector
Given a vector x, what is its magnitude?

3 days 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 days 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 days ago

Solved

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

Solved

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

Solved

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

Solved

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

3 days 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 days 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 days ago