Community Profile

photo

David Hill


Last seen: Today
3.762 total contributions since 2017

Contact

David Hill's Badges

  • Revival Level 2
  • 12 Month Streak
  • Guiding Light
  • Cody Challenge Master
  • Computational Geometry I Master
  • Famous
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • First Review
  • Matrix Manipulation I Master
  • Indexing II Master
  • Sequences And Series III Master
  • Knowledgeable Level 4
  • Puzzler
  • Scholar

View all

Contributions in
View by

Answered
Recursive Function - Bisection
Your problem is with your function. E=1; D=5; Re=1; f=@(x)-1./sqrt(x)-2.*log10(((E/D)/3.7)+2.51./(Re*sqrt(x)));%is this the ...

2 dagen ago | 0

Answered
Assigning NaN to certain values
You might try rounding to 4 decimal places first Temp=round(Temp,4); Temp(ismember(Temp,[-177.6600, -177.6500, -177.6300, -177...

2 dagen ago | 0

| accepted

Solved


Number Puzzle - 096

5 dagen ago

Solved


Number Puzzle - 095

5 dagen ago

Solved


Number Puzzle - 094

5 dagen ago

Solved


Number Puzzle - 093

5 dagen ago

Solved


number play

5 dagen ago

Solved


Number Puzzle - 092

5 dagen ago

Solved


Number Puzzle - 091

5 dagen ago

Solved


Number Puzzle - 090

5 dagen ago

Solved


Number Puzzle - 089

5 dagen ago

Solved


Number Puzzle - 088

5 dagen ago

Solved


Number Puzzle - 087

5 dagen ago

Solved


Number Puzzle - 086

5 dagen ago

Solved


Number Puzzle - 085

5 dagen ago

Answered
How to find the index location of repeated consecutive numbers over a tolerance within a vector
This should work better. Did not previously think about multi-digit numbers. n=7;%minimum number of repeats a=num2str(~(diff(A...

6 dagen ago | 0

| accepted

Answered
Invalid use of operator...it is saying it has a problem with '&&' in line 52
To continue the line of code you need three dots ... if (3000*x + 1000*y + 2000*z) <= 24000 + tolerance ... && (1000*x + 1000*...

6 dagen ago | 0

| accepted

Answered
How to find the index location of repeated consecutive numbers over a tolerance within a vector
Likely lots of other ways. n=5;%minimum number of repeats idx=strfind(cell2mat(regexp(num2str(diff(A)),'[^- ]','match')),repma...

6 dagen ago | 0

Answered
Index exceeds the number of array elements (1) ERROR - not sure why.
If you break your script at line 179, you can clearly see the problem. S10 is only a 1x1 array and needs to be a 49x1 like all t...

6 dagen ago | 0

| accepted

Answered
what does x='1' mean
The + converts the characters into their double equivalent so they can be added. double('1')+double('2');% = 99

6 dagen ago | 0

| accepted

Answered
what does x=6 means
You can run the code and find out the answer. This is all about logical operations. logical(6)&&logical(7);% by using && it con...

6 dagen ago | 0

| accepted

Answered
How to deleter specific elements from a matrix without changing its shape
Instead of deleting why not change them to nan? yourMatrix(yourMatrix>0.81)=nan;

6 dagen ago | 0

Answered
How to reassign values to new array without using a loop
[~,idx]=ismember(dataVec2,dataVec1); newMat=oldMat(idx,:);

7 dagen ago | 1

| accepted

Solved


Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

7 dagen ago

Solved


Smallest distance between a point and a rectangle
Given two points *x* and *y* placed at opposite corners of a rectangle, find the minimal euclidean distance between another poin...

7 dagen ago

Load more