Community Profile

photo

David Hill


463 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

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

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

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

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

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

2일 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?

2일 ago

Solved


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

2일 ago

Solved


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

2일 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?

2일 ago

Solved


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

2일 ago

Solved


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

2일 ago

Solved


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

2일 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}=...

2일 ago | 0

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

3일 ago | 1

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

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

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

3일 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);

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

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

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

3일 ago

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

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

4일 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).

4일 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

5일 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

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

5일 ago

Solved


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

5일 ago

Solved


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

6일 ago

Solved


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

6일 ago

Load more