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

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

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

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

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

6 dagen 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?

6 dagen ago

Solved


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

6 dagen ago

Solved


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

6 dagen 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?

6 dagen ago

Solved


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

6 dagen ago

Solved


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

6 dagen ago

Solved


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

6 dagen 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}=...

6 dagen ago | 1

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

7 dagen ago | 1

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

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

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

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

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

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

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

7 dagen ago

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

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

8 dagen 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).

8 dagen 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

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

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

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

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

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

10 dagen ago

Load more