Community Profile

photo

David Hill


Last seen: Today Active since 2017

Electrical Engineering with minors in Computer Science, Mathematics, and Creative Writing.

Working as Undergraduate Research Assistant in the field of Computational Photonics

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 24 Month Streak
  • Revival Level 2
  • Promoter
  • Sequences And Series II Master
  • Personal Best Downloads Level 4
  • 5-Star Galaxy Level 4
  • Cody5 Easy Master
  • Number Manipulation II Master
  • Draw Letters
  • Cody Problems in Japanese Master

View badges

Content Feed

Answered
Find all possible combinations of string array
You could get all possible combinations and then index into your struct. [idxa,idxb,idxc]=ndgrid(1:5,1:3,1:7);

7 hours ago | 0

Answered
Creating a column vector form data in table to meet specific requirements.
risk=ones(size(age)); risk(age>75|BMI>50)=3; risk(age>50&age<=75&BMI>40&BMI<=50)=2;

9 hours ago | 0

| accepted

Answered
what changes can be made in the code?
function out = mycumsum (m) out = m(1); for i = 2:length(m) out(i)=out(i-1)+m(i); end

10 hours ago | 0

Answered
how can do get this
You could simply look at the difference a=[5 9.8 15 6 10 9.5 9.7 9.8 9.8 9.8 9.8]; idx=find(diff(a)==0,1);

10 hours ago | 0

| accepted

Answered
RS-232 Serial Communication (Mark-10)
Look at your manual for your instrument to set up the parameters s = serialport('COM1',115200);%create object s.DataBits=8; s...

1 day ago | 0

Answered
What does this line really do?
Look at what this does. a=randi(2,1,20)-1 a(a==1)=-1%same as a(1,a==1)=-1 a(a==0)=1%same as a(1,a==0)=1;

1 day ago | 0

Answered
How do I subplot figures and Title Figures
Look at subplot() command. subplot(1,2,1); imshow(image1); subplot(1,2,2); imshow(image2);

1 day ago | 0

Answered
Converting cell array to num array for conversions
Is your data is hexidecimal? You can convert it directly to decimal (use java BigInteger for large numbers) import java.math.* ...

1 day ago | 0

Answered
help me how to find how many terms does it take until the series converges to 0.001?
Don't understand your queston completely, but quite easy to form the series. For example when n=35, which is about as far as you...

1 day ago | 0

Answered
How to convert cell to matrix?
Look at cell2mat()

1 day ago | 0

| accepted

Answered
How can I make this simple code a for loop?
x=1:5; hold on; for k=1:3 plot(x,x.^k); end

1 day ago | 0

| accepted

Solved


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

1 day ago

Solved


Test if a number is numeric or not
Test if a number is numeric or not

1 day ago

Solved


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

1 day ago

Solved


Volume of Cylinder
Compute the Circumference of a Cylinder given it's radius and height.Here x is the radius and y is the height

1 day ago

Solved


Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

1 day ago

Solved


Factorial: Unlimited Size : java.math
This challenge is an application of java.math that allows unlimited precision calculations. The primary reference sites are <ht...

1 day ago

Solved


Change number representation to HEX
Given a number change it's representation to HEX and output it.

1 day ago

Solved


Easy Sequences 51: Positive Gaussian Primes
A Gaussian Prime is a gaussian integer that cannot be decomposed as product of two non-unit gaussian integers (the complex units...

3 days ago

Solved


Easy Sequences 52: Non-squarable Rectangles
Any integer-sided rectangle can be cut into unit rectangles () and rearranged into sets of smaller rectangles. For example the ...

3 days ago

Solved


Compute the Sequence of the Day
A sequence starts with 1 and 2, and each subsequent term is the sum of the digits of the product of the previous two terms. As a...

4 days ago

Solved


Easy Sequences 53: Greatest Proper Divisor
The greatest proper divisor () of an integer is the largest integer , such that and . Furthermore, we define: . Below is the...

4 days ago

Solved


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

4 days ago

Solved


Is this number Munchhausen Narcissistic?
In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. Example 153 is narcissistic...

4 days ago

Solved


provide the numerical answer to these number questions...
return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

4 days ago

Solved


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

4 days ago

Answered
Trying to get my output to be 22 decimal places
You cannot use floating point if you want 22 decimal places of accuracy, you must use symbolic. function total=my_sin(x) digit...

4 days ago | 1

Answered
Vectorized iterative summation of matrices
What is wrong with using a loop? Why do you think it is going to be slower? a=eye(10); a(1,1)=0; a(end,end)=0; b = [1 2 3; 4...

4 days ago | 0

Solved


Two fractions, one sum
Given a positive number x, write a MATLAB script that will tell you how many ways that the reciprocal of that number can be writ...

5 days ago

Load more