Community Profile

# David Hill

##### Last seen: Today
2,443 total contributions since 2017

View all

Contributions in
View by

Matlab resizing a matrix
Not sure how you want to select the elements between the first and last. newMatrix=reshape([yourMatrix(1:58:end),yourMatrix(end...

1 day ago | 0

Solve systems of equations graphically
Do you just want to plot them to see where the curves cross? x=-5:5; y=.5*x.^2-2; z=x+2; plot(x,y,x,z); grid on; grid mino...

1 day ago | 0

| accepted

How to select every second number from a file of numbers separated by a comma

1 day ago | 0

Solved

Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

1 day ago

Solved

Sideways sum
Given natural number calculate its _population count_.

1 day ago

Solved

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

1 day ago

Solved

Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

1 day ago

Solved

Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

1 day ago

Solved

Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

1 day ago

Solved

Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

3 days ago

Solved

Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

3 days ago

Solved

Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

3 days ago

Solved

Cody problems in French : Trouvez la logique Pt.2
Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

3 days ago

Solved

Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

3 days ago

Solved

Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

3 days ago

Solved

Find the complement of a number in binary
Input x is a decimal number and output y is the complement of binary representation of x. For example, x = 10 has the binary ...

3 days ago

Solved

Modulo with 5

3 days ago

Solved

Swap

3 days ago

Solved

area

3 days ago

Solved

size

3 days ago

Solved

NaN

3 days ago

Solved

imaginary

3 days ago

Solved

PRIME GENERATOR

3 days ago