Community Profile

photo

David Hill


466 total contributions since 2017

Contact

David Hill's Badges

  • Knowledgeable Level 2
  • First Answer
  • Creator
  • Leader
  • Computational Geometry II Master
  • Card Games Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Sequences And Series I Master
  • Indexing I Master
  • Number Manipulation I Master
  • Magic Numbers II Master
  • Tiles Challenge Master
  • Project Euler I
  • Functions I Master

View all

Contributions in
View by

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

etwa 7 Stunden ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

etwa 7 Stunden ago

Answered
Sorting Prime Numbers From an Array of Numbers, Into a New Array
Why not use the primes function? NN=primes(100);

etwa 8 Stunden ago | 0

Answered
Return if No Solution
If A will always be a square matrix, then if the det(A)==0 then return (no solution).

7 Tage ago | 0

Solved


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

7 Tage ago

Solved


Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

7 Tage ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

7 Tage ago

Solved


Generate Square Wave
Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

7 Tage ago

Solved


Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

7 Tage ago

Solved


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

7 Tage ago

Solved


Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

7 Tage ago

Solved


Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

7 Tage ago

Solved


Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

7 Tage ago

Solved


Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

7 Tage ago

Solved


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

7 Tage ago

Answered
Find cells that start with text and combine it with next cell
Cell array (C), combined cell array (c). i=1; j=1; while i<=size(C,2) a=cell2mat(C{i})-57; if a(1)>0 c{j}=...

7 Tage ago | 1

Answered
use taylor series result to find value?
result=subs(T3,x,3);

8 Tage ago | 1

Answered
How to fix an invalid data type
Max=max(A)%do not name variable max or min

8 Tage ago | 0

Answered
Integral Approximation Equation Using Loop
Sounds like standard definition of integrating where the width of the rectangles is eventually reduced to nothing. n=5; x=1/n:...

8 Tage ago | 0

Answered
Calculating StdDev for elements of a matrix
Assume you can load column vectors Tmu and TriNo of the same length from your table into matrix T where first column is Tmu and ...

8 Tage ago | 0

| accepted

Answered
How to choose only certain values my matrix answer
A=[400,563,674,904,789]; B=A(A>=563&A<=904);

8 Tage ago | 0

Solved


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

8 Tage ago

Solved


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

8 Tage ago

Solved


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

8 Tage ago

Answered
Count how many elements are present inside arrays
A=arrayfun(@(x)sum(P==x),V); B=arrayfun(@(x)sum(F==x),V);

8 Tage ago | 0

Answered
Need help with taking an array inside a for loop and plotting it
A1=exp((Om*(1-Comp).^2./(R*T1)).*Comp); A2=exp((Om*(1-Comp).^2./(R*T2)).*Comp); plot(Comp,A1) hold on plot(Comp,A2) Get rid...

9 Tage ago | 0

| accepted

Answered
How to create a sequence
n=1:10; x=1/(3*n+2); You just make a vector n (1:10) and plug it into the equation (x is your desired vector).

9 Tage ago | 0

Answered
How to write multiple line for a condition in while or if
Yes, with '...' if a>b ||... c>d ||... d>e %something end

10 Tage ago | 0

| accepted

Answered
Looking for specific combinations in rows of a matrix
No loops! if unique(H)==1%yahtzee a=diff(sort(H)); if sum(a==0)==3%4-or-a-kind

10 Tage ago | 0

| accepted

Solved


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

10 Tage ago

Load more