Community Profile

photo

David Hill


Last seen: Today
2,853 total contributions since 2017

Contact

David Hill's Badges

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

View all

Contributions in
View by

Answered
How to exclude multiple rows from calculation of a matrix?
temp1=A(2:2:end,1); temp2=A(1:2:end,2); A(A<.5)=0; A(A>=.5)=1; A(2:2:end,1)=temp1; A(1:2:end,2)=temp2;

39 minutes ago | 0

Answered
how to make loop answers in a matrix
No loop is needed. v3=diff(v2.^2);

1 hour ago | 1

Solved


Repeat string n times - 3
function myOutput = rep_str_3(string1, string2, num1, num2, n) function desiredOutput = rep_str_3('string1', 'STRING2', 0...

1 hour ago

Solved


Repeat string n times - 2
This is the two variable version of <http://www.mathworks.com/matlabcentral/cody/problems/42482-repeat-string-n-times Repeat str...

1 hour ago

Solved


Repeat string n times
* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

1 hour ago

Solved


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

2 hours ago

Solved


Converting Decimal to Binary
Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given...

20 hours ago

Solved


commutative?
Given the handle to a binary function that takes two ordinary numbers, test if the function is commutative.

20 hours ago

Solved


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

21 hours ago

Solved


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

21 hours ago

Answered
Using a loop with changing intial value
% Initial conditions Ca0 = 2; Cb0 = 4; Cc0 = 0; Cd0 = 0; T0 = 300:100:800; IC = [repmat([Ca0 Cb0 Cc0 Cd0],length(T0),1),T...

23 hours ago | 0

Answered
Compute the area of points with coordinates form two matrices
Did you look at the alphaShape() function? a=alphaShape(theta_init(:),theta_dot_init(:)); b=a.area;

24 hours ago | 0

Answered
How to know if a Point belongs to a curve?
ismember(curve',P','rows');

24 hours ago | 0

Answered
Why cant' I plot this graph?
You need .^ for elementwise array operations x = linspace(0,2,250); y = 15*x.^3-9*x.^2-36*x+36; plot(y,x)

1 day ago | 0

Solved


Your favourite city!
Type your favourite city.

1 day ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

1 day ago

Solved


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

1 day ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

1 day ago

Solved


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

1 day ago

Solved


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

1 day ago

Solved


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

1 day ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

1 day ago

Answered
Averaging 5 vectors in the top row of a 10x5 cell array.
mean(cell2mat(In1(1:5,:)),2);

1 day ago | 0

| accepted

Solved


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

2 days ago

Solved


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

2 days ago

Solved


ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

2 days ago

Solved


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

2 days ago

Solved


Find the position of last minimum value in an integer array with numbers
If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

2 days ago

Solved


Figurate number triangle
Check whether the input matrix is a figurate number triangle: <http://mathworld.wolfram.com/FigurateNumberTriangle.html>

3 days ago

Load more