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
  • Treasure Hunt Participant
  • 24 Month Streak
  • Revival Level 2
  • 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

バッジを表示

Content Feed

表示方法

解決済み


A matrix of introverts
You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...

1日 前

解決済み


Determine value using Look-up table method
Given a set of 2 vectors x and y related in a certain way, you are supposed to find value of y (ydash) given a particular value ...

1日 前

回答済み
How to reset a variable in a for loop?
Use indexing. X=1+rand(1,10); for i=1:10 Y=X(i)+5;%whatever you do. end

1日 前 | 0

解決済み


Delete the rows in the middle
We will delete the rows in the middle and keep the first and the last rows. For example if input is [1 2 1 7 1 8 ...

2日 前

解決済み


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

2日 前

回答済み
Convert list of indices to array
x=reshape(yourMatrix(:,4),[3],[3],[3]);

3日 前 | 1

回答済み
indexing into an array
[~,idx]=ismember(B,A(:,1)); C=A(idx,:);

3日 前 | 0

| 採用済み

回答済み
Initializing all rows with one set of values in one half and another set in the other half
cA=repmat([cA0*ones(1,(N-1)/2+1),Kw/cB0*ones(1,(N+1)/2-1)],number_of_rows,1);

3日 前 | 0

解決済み


Easy Sequences 20: Counting Prime-sided Rectangles
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

6日 前

解決済み


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

6日 前

解決済み


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

6日 前

解決済み


Find the elements of a matrix according to a defined property.
From A = [5,2,3] and B = [1,2,3,4,5,6,7,8,9,10] produce a vector C where : C(1) is the sum of the first A(1) elements of B, ...

6日 前

解決済み


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

6日 前

解決済み


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

6日 前

解決済み


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

6日 前

解決済み


determine if
determine if the elements of a matrix is a nan and return true

6日 前

解決済み


find the 'M'
for an input x, return 1 at the location of the letter 'M'

6日 前

解決済み


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

6日 前

解決済み


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

6日 前

解決済み


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

6日 前

解決済み


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

6日 前

解決済み


Thank!
. Thank all.

7日 前

解決済み


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

7日 前

解決済み


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

7日 前

解決済み


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

7日 前

解決済み


Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

7日 前

解決済み


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

7日 前

解決済み


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

7日 前

解決済み


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

7日 前

解決済み


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

7日 前

もっと読み込む