Community Profile

photo

David Hill


Last seen: Today
2,146 total contributions since 2017

Contact

David Hill's Badges

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

View all

Contributions in
View by

Solved


Finding fourier transform of a given vector
Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

2 hours ago

Solved


replace empty matrices with '[]'
for example a=1;a(:,1)=[]; returns a = Empty matrix: 1-by-0 use this as the input,and the output should be '[]...

2 hours ago

Solved


Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

2 hours ago

Solved


Accessing value of variable whose name is stored in another variable as string.
Accessing value of variable whose name is stored in another variable as string. for example: var1=n; var2='var1'; %Assigning...

2 hours ago

Solved


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

2 hours ago

Answered
For Loop Using the Previous Calculated Term for Each Iteration
t=0:60:900 rate_NaCl(1)=r_NaCl; for k=2:length(t)-1 rate_NaCl(k)=sqrt(rate_NaCl(k-1)^2 + 2*rdrdt_NaCl*t(k)); end plot(t...

2 hours ago | 0

Answered
Adding to an array within a For loop?
No loop needed. gpa4=nnz(data(:,3) == 4); class_honors=nnz(data(:,2) == 2015 & data(:,3) >= 3.5); class_psych=nnz(data(:,2) =...

2 hours ago | 0

Answered
How to plot the values found in a for loop?
Are X, Ex, Ey, Gamxy constants not listed? Recommned executing without loop; otherwise you need to index Ebca/Ebcb/Ebcc. Current...

3 hours ago | 0

Answered
Increment change For loop
for i=[1:2:19,23:4:200] end

3 hours ago | 0

Solved


Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

3 hours ago

Solved


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

3 hours ago

Solved


average for three points
how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

3 hours ago

Solved


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

4 hours ago

Solved


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

4 hours ago

Solved


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

4 hours ago

Solved


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

4 hours ago

Solved


Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients. example: a=[3 4 5]; b=[...

4 hours ago

Solved


Find the area of a triangle having vertices (A,B), (C,D), and (E,F)
Find the area of a triangle using if we have the three vertices of the triangle

4 hours ago

Solved


Cell Array Inception?
Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kt...

4 hours ago

Solved


Create a block diagonal matrix
A block diagonal matrix is a square matrix that can be written as A = [a 0 0 0 0 b 0 0 0 0 c 0 ...

4 hours ago

Solved


Find the repeating elements and repetitions of a row vector.
So let's say that x is a vector, for example, x = [4, 4, 5, 5, 5, 6, 7, 7,8, 8, 8, 8] Now we want to get the following two ve...

5 hours ago

Solved


Get the variable value from a string and generate sum
Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

5 hours ago

Solved


Filter values in a vector
Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...

5 hours ago

Solved


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

6 hours ago

Solved


Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]

6 hours ago

Solved


Normalize by maximum
Subtract the maximum value in a column from the corresponding columns of a matrix.

6 hours ago

Solved


Reverse Concatenation
Suggest methods to form a Matrix after deleting one of the input's elements. Input should be element's position and output shou...

6 hours ago

Solved


Find the relation
Take x as input and y as output. If x=1 y=3 If x=2 y=14 If x=3 y=39 If x=4 y=84 Based on this relation find giv...

6 hours ago

Solved


normalize group of numbers to integers
Hi guys! I have a group of 4 numbers x,y,z,w which comes from 4 integers multiplied with a common factor. [x,y,z,w] = c [i,j,k,...

6 hours ago

Solved


Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements. For example, if x =...

6 hours ago

Load more