Community Profile

photo

David Hill


475 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
How do I calculate the square of TStep5 divided by the average of TStep4 and TStep2?
TStep5^2/mean([TStep4,TStep2]); If you explained what you really what to do, it would be easier to help. There is likely a must...

ongeveer 10 uur ago | 0

Answered
How do I find the sum of two vectors?
Row + Step;

ongeveer 10 uur ago | 0

Answered
How would I convert this equation to code? My likely flawed coding is below. Thanks!
Assuming L and T are vector arrays of equal length and all others are defined constants. es=e0*exp((L/rv).*(1/t0 - 1./T));

ongeveer 10 uur ago | 0

Answered
How can I create multiple arrays, based on unique column values, from a single array?
For your array x: function Plot(x) hold on; z=x(:,1); arrayfun(@(y)plot(x(ismember(z,y),3),x(ismember(z,y),2),'Marker','*','...

ongeveer 14 uur ago | 0

Answered
backward recurssion in a loop
c=zeros(9,20); c(9,:)=b(9,:)-a(9,:); for i=8:-1:1 c(i,:)=c(i+1,:)-a(i,:); end

ongeveer 15 uur ago | 0

| accepted

Answered
help plotting basic x vs y?
x =linspace(0,L,100); y =w0./(120*E*I*L)*(-5*x.^4+6*L^2*x.^2-L^4); plot(x,y);

ongeveer 15 uur ago | 0

| accepted

Answered
correlation coefficients for a matrix that includes NaNs
[R,P]=corrcoef(rmmissing(PK6mab)); If you can tolerate deleting the entire rows of any missed data.

ongeveer 16 uur ago | 0

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];

ongeveer 22 uur 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

ongeveer 22 uur ago

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

ongeveer 22 uur 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).

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

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

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

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

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

8 dagen ago

Solved


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

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

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

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

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

8 dagen ago

Solved


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

8 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}=...

8 dagen ago | 1

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

9 dagen ago | 1

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

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

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

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

9 dagen ago | 0

Load more