Community Profile # David Hill

Last seen: Today Active since 2017

Electrical Engineering with minors in Computer Science and Mathematics. Working as an Undergraduate Research Assistant in the field of Robotics and Computational Photonics. Currently working on cutting-edge adaptive algorithms for controlling soft robots and other underdefined systems. Plan on continuing my education by pursuing a masters in mechanical engineering (robotics) and a MBA.

Programming Languages:
Python, C++, C, Java, MATLAB, HTML, Arduino
Spoken Languages:
English, Spanish

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Solved

Chain multiplication - 02
Following up on the problem in 55295, you found the number of multiplications needed to multiply two matrices. Now, you are giv...

ongeveer 3 uur ago

Solved

Cut the rod
A rod of length n can be cut in different sizes. Different price is associated with different length of cuts. length, len= [1,...

ongeveer 4 uur ago

Solved

Number of leaps in binary search
Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

ongeveer 5 uur ago

Solved

Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

ongeveer 5 uur ago

Solved

Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

ongeveer 16 uur ago

How to convert character column to 4 byte (total 32 bits) data?
dec2bin(15226547,32)-'0'

4 dagen ago | 0

Extract specific rows and columns from excel and store in a matrix
If formating is consistent, readmatrix should work. listing=dir; M=[]; for k=1:length(listing) m=readmatrix(listing(k)....

4 dagen ago | 0

I want to create a binary matrix with a variable dimensions
k=10; M=50; O=randi(M+1,k)-1;%number of ones per row (number of zeros per row= 50 - O) for n=1:k m=[ones(1,O(n)),zeros(1...

4 dagen ago | 0

Combination of 2 image
idx=find(B(:,:,1)~=0&B(:,:,2)~=0&B(:,:,3)~=0);%find ~black pixels in image B C=B; C(idx)=A(:,:,idx);%set ~black pixels to imag...

4 dagen ago | 0

| accepted

Match numbers to allocate text
Your could also use a sparse array or an array of nan. x=[12 13 19 21]; y=[12 13 19 24 21 12 12]; X=nan(1,25); X(x)='ABCD'; ...

7 dagen ago | 0

How to find x value for a known y in array plot?
[~,idx]=min(abs(y-.8*max(y)));%.8*max(y) is not part of the y-array, find the closest y-idx to that value x(idx)

8 dagen ago | 0

Solved

Rule of mixtures (composites) - weighted bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

12 dagen ago

Solved

Rule of mixtures (composites) - lower and upper bounds (volumes)
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

12 dagen ago

Solved

Get ranks of values in a vector
For a given vector, say [6 3 8 2], return the ranks (ascending) of observations, i.e. [3 2 4 1]. Do not worry about tied ranks. ...

12 dagen ago

Solved

Handle to an array of functions
Given a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of value...

12 dagen ago

Solved

Apply a function array to an array of numbers
It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

12 dagen ago

Solved

Calculate value of capacitor
Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

12 dagen ago

Solved

Visualization of experimental data across a surface
Assume that you have taken data across the surface of a sample, for example sheet resistance. The data is stored in a Nx3 matri...

12 dagen ago

Solved

Define the operators of function_handles
Suppose f and g are function_handles, try to define f+g,f-g,f*g and f/g. e.g. if f = @(x)x and g = @(x)x+1 ...

12 dagen ago

Solved

Best Fit RMS
Given a set of data as x and y, find the <http://en.wikipedia.org/wiki/Root_mean_square RMS> value between the data and its best...

12 dagen ago

Solved

Find my birthday
Given a birth date x, find my age when my birth day will fall on the same day as I was born. So if I was born on Monday, what ag...

12 dagen ago

Solved

Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] Output vector = [90 89 12 10 7 5 3 ...

13 dagen ago

Solved

Tax Season ! How much is my salary?
Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of th...

13 dagen ago

Plot two histograms over one another
Play with the color and alpha face to get something you like. https://www.mathworks.com/matlabcentral/fileexchange/47552-histf?...

13 dagen ago | 0

Replacing Values in Matrix that are not equal to 1 while excluding 'NaN'
test2=test1; test2(test2==2)=1; test2(test2<0)=0;

13 dagen ago | 0

How do i insert one value from one array to another array
Look at pdist2 A = [1,2;2,1;1,1;1,3;3,2] ; B = [0.5,0.5;2,2]; pdist2(A,B)

13 dagen ago | 0