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


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

etwa 7 Stunden ago

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

etwa 7 Stunden 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);

etwa 7 Stunden ago | 0

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

etwa 9 Stunden 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));

etwa 10 Stunden 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

etwa 13 Stunden 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...

etwa 13 Stunden 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...

etwa 14 Stunden 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...

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

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

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

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

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

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

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

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

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

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

6 Tage ago

Solved


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

6 Tage ago

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

6 Tage ago | 0

Answered
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,:)));

6 Tage ago | 0

Solved


Sum of two number using (regexp, varargin) comand?
Sum two number a &b and get there result in c using the rexp and varargin comand.

6 Tage ago

Answered
why doesnt it work
function x = ss_dtmf(number,dt,nd,np) x=[]; for i=1:length(number) x = [x,ss_dtmf1(number(i),0:nd:dt),ss_dtmf1(12,0:np:dt...

6 Tage ago | 0

Answered
Split a vector into 2 oscillating vectors?
v1=zeros(1,500000); v2=zeros(1,500000); for k=1:100 v1((k-1)*5000+1:k*5000)=v((2*(k-1))*5000+1:(2*(k-1)+1)*5000); v2((k-...

6 Tage ago | 0

Solved


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

6 Tage ago

Solved


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

6 Tage ago

Solved


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

6 Tage ago

Solved


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

6 Tage ago

Solved


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

6 Tage ago

Load more