Community Profile

photo

David Hill


Last seen: Today 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
  • Revival Level 2
  • 12 Month Streak
  • Sequences And Series II Master
  • Cody5 Easy Master
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • Number Manipulation II Master
  • Draw Letters
  • Cody Problems in Japanese Master
  • Cody Challenge Master
  • Computational Geometry I Master
  • Famous

배지보기

Content Feed

보기 기준

해결됨


Draw a x-by-x matrix 'Denmark flag'(Euro(2020)
Draw a x-by-x matrix 'Denmark flag' using '4' and '1'.(x is odd and bigger than 4) Number 4: Caption S.Kjær and number 1: K.S...

8일 전

해결됨


Draw matrix 'Swiss flag'( Euro 2020)
Draw a x-by-x matrix 'Swiss flag' using '1' and 0.(x is odd and bigger than 4) Example x=5 ans = [1 1 1 1 ...

8일 전

해결됨


Find numbers in the Popular Computing Z-sequence
Here’s a quick one. In 1977 the magazine Popular Computing sought “problem situations for which the computer is the best (if not...

8일 전

답변 있음
Improving the speed of a double for loop through vectorization or changing summation indices
What is rep doing? Seems to just be multiplying. for rep = 1:10000 for p=0:N_M_min for q=0:p coeff(p+1) = coeff(...

8일 전 | 0

해결됨


List Honaker primes
The number 131 is the 32nd prime number. It is a Honaker prime because the sum of its digits (1+3+1) equals the sum of the digit...

8일 전

해결됨


Hoax Numbers
A Hoax Number (OEIS A019506) is defined as a composite number, whose sum of digits is equal to the sum of digits of its distinct...

8일 전

해결됨


Palindromic Prime
Palindromic Prime is a prime number that is also a palindromic number. (Wiki, OEIS) If given a monotonic series (increment=1) ...

9일 전

해결됨


Bessel Polynomials
Return the n-th Bessel polynomial Assume that n is a non-negative finite integer. bessel_poly(0) ans = 1 bessel_poly(1) ...

9일 전

해결됨


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

9일 전

해결됨


Generate a matrix as follows
write a Function that gives like the following for a random n: n=2 ans= [ 0 1 1 0] n=6 ans= [ 0 ...

9일 전

답변 있음
A simple rout algorithm in finding the way from point (0,0) to a random point (x1,y1) in a block
I would use a graph. M=zeros(100);%adjacency matrix start r=randperm(100,11);%ten random nodes with last node the end point e...

10일 전 | 1

| 수락됨

답변 있음
How to use multiple break statments
for i = 1:100 if ~(sln2.Error<=1) Ext.W22=beta*Ext.W22; Ext.W22List(i) = Ext.W22; end sln3.Erro...

10일 전 | 0

| 수락됨

답변 있음
Find minimum and maximum from same matrix
m=yourMatrix; m(m<=0)=inf; Min=min(m,[],'all'); m=yourMatrix; m(m>=0)=0; Max=-max(abs(m),[],'all');

10일 전 | 0

답변 있음
Find Consecutive numbers and print value in next collumn
Simple loop works c=0; f(:,6)=0; for k=1:size(f,1) if f(k,5)==1 c=c+1; f(k,6)=c; else c=0; end end

10일 전 | 1

답변 있음
Check every element of an array with if statement
z = [0.2+(-500:.05:500)*1i]; R = (z-1)./(z+1); x = abs(R); idx=x<=1; plot(real(R(idx)),imag(R(idx)),'b'); title('R Pla...

10일 전 | 0

| 수락됨

답변 있음
Producing all combinations of a vector with replacement
[x,y]=meshgrid(1:4); z=unique(sort([x(:),y(:)],2),'rows');

11일 전 | 1

| 수락됨

해결됨


Back to basics 13 - Input variables
Covering some basic topics I haven't seen elsewhere on Cody. Return as a string the name of the input variable to the functio...

22일 전

해결됨


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

22일 전

해결됨


N-Cards Problem
You have a deck of _N_ cards numbered in order from 1 to _N_. You discard the top card (card 1) and place the next card (card 2)...

22일 전

해결됨


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

22일 전

답변 있음
Cicle for read data.
for k=0:95 T= sprintf("M3%d.dat",k); M3{k+1}= readtable(T, opts);%must start indexing at 1 end

23일 전 | 0

| 수락됨

답변 있음
How do I solve the double integral r dr d theta from 0,pi/2 and 0,4
syms r theta a=int(int(r,'theta',0,pi/2),'r',0,4);

23일 전 | 1

| 수락됨

답변 있음
Problems in for loop with cell array
Why not just use fit() function x=0:.01:2*pi; y=(5+.05*randn(size(x))).*sin((3+.05*randn(size(x))).*x); f=fit(x',y','sin1'); ...

23일 전 | 0

| 수락됨

답변 있음
How do I solve the triple integral xz^2siny from 0,pi/2,0,pi/2,1,2?
syms x y z; eqn=x*z^2*sin(y); a=int(int(int(eqn,'x',0,pi/2),'y',0,pi/2),'z',1,2);

23일 전 | 0

답변 있음
HOW CAN I PLOT THIS?
load('EXAMPLE.mat'); m=table2array(GIULIAMMEQ1); d=datenum(m(:,1)); v=str2double(m(:,2)); idx=~isnan(v); plot(d(idx),v(idx)...

23일 전 | 0

해결됨


Compute the effective conductivity of a heterogeneous aquifer
Slow flow through soil or another porous medium follows Darcy’s law, which relates the flow of water to the gradient in piezome...

23일 전

해결됨


Pick the die most likely to win
After discussing Rock, Paper, Scissors, Lizard, Spock in The Simpsons and their Mathematical Secrets, Simon Singh writes that in...

23일 전

해결됨


create a function that give us like the following
x=3 y= [1 -1 -1 0 1 -1 0 0 1]; -------------------------------- x=5 y= [ 1 -1 -...

23일 전

답변 있음
I need to make groups from array
Some guessing. You only said it stays in group is greater by 1-5%, I assumed a new group otherwise. Anyways, you modify the belo...

24일 전 | 1

답변 있음
Arrange the values in a Matrix in a way (line by line)
F=reshape(G,5,4)';

24일 전 | 0

더로드