Community Profile

photo

David Hill


Last seen: 1 día ago
3.735 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
How to reassign values to new array without using a loop
[~,idx]=ismember(dataVec2,dataVec1); newMat=oldMat(idx,:);

alrededor de 8 horas 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...

alrededor de 14 horas 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...

alrededor de 14 horas ago

Answered
How to solve this equation?
f=@(h)h.^0.66+0.0805*h-0.045; fzero(f,0.008);%plot(0:.001:.1,f(0:.001:.1)) to get approximate location to root

alrededor de 16 horas ago | 0

Answered
How to reorder a vector one cell at a time?
order = [1 3 1 5 1 1 7 1 8 1 1 9 4 1]'; a=order([find(order~=1);find(order==1)]); c=1; while ~isequal(order(:,c),a) c=c+1;...

1 día ago | 0

Answered
Logical with complex numbers in a vector
%depends on what you are trying to compare real(t)==0; imag(t)==0; norm(t)==0;

1 día ago | 0

Solved


DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

1 día ago

Solved


What is the next step in Conway's Life?
Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

1 día ago

Solved


Extract Built In Functions and Toolbox Functions from String or Function Handle
Find the Built-In functions and Toolbox functions in either a string or a function handle. Generate a string of alphabetized ...

1 día ago

Answered
Two equations of two unknown angles
fun = @solution; x0 = [0,0]; I = fsolve(fun,x0);%solution function f = solution(x) A=87;B=65;D=92; f(1)=D*sin(200)+A...

1 día ago | 0

Answered
How do I find the average/mean of each row if the data has 150 rows and 3 columns?
If A=(150x3 matrix), then b=mean(A,2);%will be a 150x1 column vector of the averages of each of the 150 rows b=b';%transpose ...

2 días ago | 0

Answered
how to covert char array to num array?
arr={'some'; 'the'; 'time'; 'hour'};%must be cell array since lengths are not the same for k=1:length(arr) arr{k}=double(arr...

2 días ago | 0

| accepted

Answered
logical arry indexing: how to extract columns that match a criterion
b=a(3,:);%whatever row c=a(:,b>=.6&b<=.8);

2 días ago | 1

| accepted

Answered
how do i salve this?
I assume you cannot use the built-in function movsum() movsum(x,3,'Endpoints','discard'); But should be able to use other fun...

2 días ago | 0

Solved


Would you win a raffle?

2 días ago

Answered
Plotting in a Loop Always Return "Vector must be the same length"
Why plot in the loop? for n = 1:x for i = 1:y r(n,i) = rand + i; end end plot(1:y,r,'d');

3 días ago | 0

| accepted

Solved


Upper case and lower case!

3 días ago

Solved


Volume of Cylindrical Shell

3 días ago

Solved


Period of a pendulum

4 días ago

Solved


Angular Velocity

4 días ago

Solved


Area of Cylindrical Shell

4 días ago

Load more