Community Profile # 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
• • • • • • • • • • • • #### Content Feed

View by

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);

1 day ago | 0

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;

1 day ago | 0

| accepted

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

1 day ago | 0

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);

1 day ago | 0

| accepted

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...

2 days ago | 0

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;

2 days ago | 0

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

2 days ago | 0

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.* ...

2 days ago | 0

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...

2 days ago | 0

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

2 days ago | 0

| accepted

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

2 days 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.

2 days ago

Solved

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

2 days ago

Solved

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

2 days 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

2 days ago

Solved

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

2 days 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...

2 days ago

Solved

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

2 days 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...

4 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 ...

4 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...

5 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...

5 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...

5 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...

5 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...

5 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 ...

5 days ago

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...

5 days ago | 1