Community Profile

photo

David Hill


Last seen: 2 giorni ago 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
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 36 Month Streak
  • Revival Level 2
  • Magic Numbers Master
  • Word Puzzles Master
  • Personal Best Downloads Level 4
  • 5-Star Galaxy Level 4
  • Promoter
  • Sequences And Series II Master
  • Cody5 Easy Master
  • Number Manipulation II Master

View badges

Content Feed

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

1 giorno ago | 0

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

1 giorno ago | 0

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

1 giorno ago | 0

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

1 giorno ago | 0

Answered
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'; ...

5 giorni ago | 0

Answered
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)

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

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

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

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

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

10 giorni 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

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

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

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

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

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

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

10 giorni ago

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

10 giorni ago | 0

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

11 giorni ago | 0

Answered
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)

11 giorni ago | 0

Answered
how to create a list of random number with a minimum difference between each number?
You can brute force it. m=200;%randomn numbers between 1-200 n=50;%array length d=20;%minimum distance a=randi(m,100000,n);%...

11 giorni ago | 0

Solved


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

11 giorni ago

Solved


Create numeric palindromes and their square roots
Given a number n (1<=n<=9), return a left justified numeric matrix p with all the palindromes of the form 1 to n and back to 1. ...

11 giorni ago

Solved


persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

11 giorni ago

Solved


List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....

11 giorni ago

Solved


Cyclotomic polynomial
Given a Natural number (N), return the corresponding Cyclotomic Polynomial.

11 giorni ago

Answered
How to extract two columns from cell table based on two conditions
It is all number so I would convert to a matrix. H=cell2mat(heart(:,[6,9])); mesure_sodium=H(H(:,6)==1&H(:,9)<135,:);

11 giorni ago | 0

| accepted

Answered
combine two cell into one string
c=readtable('SummaryResult - Copy.xlsx'); m=[cell2mat(c.PLDStatus([1:6,20:23])),repmat('_',10,1),num2str(c.BLFFileName([1:6,20:...

11 giorni ago | 0

Load more