Community Profile

photo

David Hill


Last seen: Today
1.430 total contributions since 2017

Contact

David Hill's Badges

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

View all

Contributions in
View by

Answered
Sum of series with a variable
I always like to look at what I am doing before solving. Numerially, it should be relatively easy to find the root. alpha = 0.5...

ongeveer 18 uur ago | 0

Answered
how can i convert the content of a character array to a variable name
Generally, you should not do what you are trying to do. One possible solution is to use a struct. xx='Helo'; myStruct.(xx)=mag...

ongeveer 18 uur ago | 0

| accepted

Answered
loop function help please
x=-10:10; for k=1:length(x) if x(k)<0 f(k)=3*x^2+5*x-7; else f(k)=3*x+4; end end

ongeveer 18 uur ago | 0

Answered
n number of 2x2 matricies to diagonal matrix
n = input('Input the number of elements:'); k = ((E * avg_area)/L); k_global=diag([k,repmat(k+k,1,n-1),k])+diag(repmat(-k,1,n...

ongeveer 18 uur ago | 0

| accepted

Solved


Pandigital number n°3 (Inspired by Project Euler 32)
After Problem 2319 and 2320. An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For examp...

1 dag ago

Answered
For Loop Which Skips Numbers Based on Row Vector
n=1:1000;%not sure how far you want your for-loop to go (max(rowVector)+?) n=n(~ismember(n,rowVector)); for k=n %or 1:length(n...

4 dagen ago | 0

| accepted

Solved


Find 10's complement
Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

4 dagen ago

Solved


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

4 dagen ago

Solved


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

4 dagen ago

Solved


Add two different item as shown in example
Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

4 dagen ago

Solved


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

5 dagen ago

Solved


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

5 dagen ago

Solved


Converter temp 0 to 200 degree C to 4 to 20mA
Converter temp 0 to 200 degree C to 4 to 20mA (It is used in transmitter)

5 dagen ago

Solved


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

5 dagen ago

Solved


Create vector as shown in test cases
Create vector as shown in test cases

5 dagen ago

Solved


Transpose of matrix
Transpose of matrix as per test cases

5 dagen ago

Solved


Zero Cross
Write a function that counts the number of times n a signal x changes sign. Examples x = [1 2 -3 -4 5 6 -7 8 -9 10 11] ...

5 dagen ago

Solved


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

5 dagen ago

Solved


Gapful numbers
If a number is divisible by the number formed by the first and last digit of that number then it is defined as a gapful number. ...

5 dagen ago

Submitted


Image Encryption using AES-256 CBC mode
Encrypt images of any size using AES-256 encryption in the CBC mode

5 dagen ago | 6 downloads |

Thumbnail

Answered
How can I sample n elements from each column of a matrix?
B=A(randi(size(A,1),2,size(A,2))+(0:size(A,2)-1)*size(A,1));

5 dagen ago | 0

| accepted

Answered
I have no idea whether this code is correct or not
Each row of the f matrix is the next progression. You might need to play with it some, but the below concept should work for you...

5 dagen ago | 0

Answered
How can I express this very long summation in Matlab? I'm having trouble
I believe that below should work for you. I did not try it out since you did not provide all the information, but you have to co...

5 dagen ago | 0

| accepted

Answered
How do I run multiple "for" loops simultaenously in MATLAB?
Just need one continuous loop. Just repeat commands until 3 and 5 seconds realign. writeDigitalPin(a, 'D13', 1); while 1 ...

5 dagen ago | 0

Solved


Coin distribution
Imagine, u r in a shop. ur bill is n(2200). u want to pay the bill with minimum no of coins u have. u've coins of - 2000,1000...

6 dagen ago

Solved


Anagram
Given two strings, check whether they're anagrams to each other or not.

6 dagen ago

Answered
how to write these two equations
Not sure what Tj means in the equation. for k=1:K for j=1:K if j~=K R(j,k)=B/2*log2(1+(h(k)*a(j))^2...

6 dagen ago | 0

Answered
how to write this equation
Assuming p and m arrays previously established and e,B, and K are scalar. R=B/2*log2([((1-e)*p(1:K-1)+m(1:K-1))./(p(2:K)-e*p(1:...

6 dagen ago | 0

Answered
Same Rows between two matrix
isequal(sortrows(A),sortrows(B));

6 dagen ago | 0

| accepted

Load more