Community Profile

photo

David Hill


Last seen: Today 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

배지보기

Content Feed

보기 기준

답변 있음
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...

약 5시간 전 | 0

답변 있음
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)...

약 7시간 전 | 0

해결됨


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

약 7시간 전

답변 있음
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...

약 9시간 전 | 0

답변 있음
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...

약 10시간 전 | 0

답변 있음
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;

약 16시간 전 | 1

| 수락됨

답변 있음
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 ...

1일 전 | 1

답변 있음
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...

1일 전 | 0

해결됨


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

2일 전

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

2일 전 | 0

답변 있음
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);

2일 전 | 0

| 수락됨

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

2일 전 | 0

답변 있음
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));

2일 전 | 0

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

2일 전 | 0

답변 있음
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...

2일 전 | 0

답변 있음
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...

2일 전 | 0

| 수락됨

해결됨


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

5일 전

해결됨


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

5일 전

해결됨


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

6일 전

문제


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

6일 전 | 1 | 솔버 수: 2

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


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

7일 전

해결됨


The number of trailing zero digit of a factorial
For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

7일 전

답변 있음
Difference Calculation between current value and a specified prior value
Not sure exactly what you are after, an example would be helpful. B=(x(1:10)-x(10:19))./x(10:19);

7일 전 | 0

답변 있음
Count the number of times a value repeats between certain rows in a matrix.
A=[2,5,15,65,102;2,65,1,105,55;65,104,15,19,5]; i=A(1,ismember(A(1,:),A(2,:)));

7일 전 | 0

더로드