Community Profile

photo

David Hill


Last seen: Today Active since 2017

Electrical Engineering with minors in Computer Science and Mathematics. Working as Undergraduate Research Assistant in the field of Computational Photonics

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

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 24 Month Streak
  • Revival Level 2
  • Promoter
  • Sequences And Series II Master
  • Personal Best Downloads Level 4
  • 5-Star Galaxy Level 4
  • Cody5 Easy Master
  • Number Manipulation II Master
  • Draw Letters
  • Cody Problems in Japanese Master

View badges

Content Feed

Solved


Easy Sequences 64: Base-14 Arithmetic Function
For an integer , the base-14 arithmetic function, , is defined as follows: Convert to base-14, using the letters '' for digits...

1 day ago

Answered
How to iteratively increase the number of power operations
n=10;%how many do you want x=2.^((.5).^(1:n))

1 day ago | 0

| accepted

Solved


Easy Sequences 67: Project Euler Problem 1 - Not Again!!!
You know the drill... Given two integers and , with , find the sum of all positive integers below , that are multiples of any ...

2 days ago

Answered
Area in a function
x=-1:.001:1; f=1-x.^4; g=zeros(size(x)); plot(x,g,x,f); x2 = [x, fliplr(x)]; inBetween = [g, fliplr(f)]; fill(x2, inBetwee...

3 days ago | 0

Answered
Distance between two set of points in space
Why no loop? Below is oneliner but has an internal loop. C=arrayfun(@(x)vecnorm((A(x,:)-B)'),1:size(A,1),'UniformOutput',false)...

3 days ago | 0

Answered
How can I equalize my vector length?
PC=250; FFB=PC; yph=0.1:.01:1.08; FG=3*PC*(1-yph)./(0.98-yph); FE=(1./yph - 1).*(0.02*FG); PG=FE+0.02*FG; EP2=PC*8150*12.0...

3 days ago | 0

Answered
How can I change input of function from file to cell array?
Either delete or comment out lines below and change input to data. Verify cell2mat(of your cell array) gives what is expected. O...

3 days ago | 0

| accepted

Answered
Iterative insertion of random numbers in matrix
r1=(5*rand(size(X1))-2.5)*1e-9; r2=(5*rand(size(X1))-2.5)*1e-9; Xnew=X1+r1+r2;

3 days ago | 1

| accepted

Answered
How to get two arrays from .txt file?
Why not just copy and paste? dL1=[0 0.000424 0.000847 0.001271 0.001694... 0.002118 0.002541 0.002965 0.003812... 0.004659 ...

4 days ago | 1

Answered
where is the mistake?
Why not just: w='abcderfrgrhhr'; l=w=='r' l = 1×13 logical array 0 0 0 0 0 1 0 1 0 1 0 0 1...

4 days ago | 0

Solved


determine the sum of decimal part for given matrix
determine the sum of fraction part for the given matrix

4 days ago

Answered
For Loop Help with Output
No for-loop needed. h=.1; y=1; x=0:h:10; Y=y+h*x;

4 days ago | 0

Answered
For Loop to read rows on a cell array
Not sure if this the correct guess. y=sum(strcmp(yourCell,'BB'),2)/size(yourCell,2);

4 days ago | 0

| accepted

Answered
Searching word list for key letters
wordList = {'apples','orange','banana','show','unit'}; ContainList = 'shu'; NotContainList = 'br'; r=wordList(contains(wordLi...

5 days ago | 0

Answered
Plotting values from a double array based on information from a cell array
idx=strcmp(yourCell(:,2),'hold')|strcmp(yourCell(:,2),'hold-end'); plot(yourMatrix(idx,1),yourMatrix(idx,3));

5 days ago | 0

Answered
how to write delta function
Or use dirac() built-in function function x=delta(x) if x==0 x=inf; else x=0; end

5 days ago | 0

Answered
Research of an element in an array
This should work for you as long as there is only going to be a single match or no match K=find(S==X,1); if ~isempty(K) d...

5 days ago | 0

Answered
Plotting values from a double array based on information from a cell array
a=strcmp(yourCell(:,2),'max-pressure-evac 60.0'); f=find(a)'; f=f+(0:numel(f)-1); for k=f yourCell(k+1:end+1,:)=yourCell(k...

5 days ago | 0

| accepted

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

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

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

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

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

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

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

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

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

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

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

10 days ago

Load more