Community Profile # David Mittiga

Last seen: 19 days ago Active since 2016

#### Statistics

All
• • • #### Content Feed

View by

Solved

Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

2 years ago

Question

Hello, I cannot seem to find a simple way to programmatically replicate a signal into a vector in Simulink. For example, I'd li...

2 years ago | 2 answers | 0

### 2

Question

MATLAB support for additional graph distance metrics/norms?
I am attempting to compute the "shortest path tree" on a weighted graph but I need to use a different distance metric than usual...

2 years ago | 1 answer | 0

### 1

Solved

Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

7 years ago

Solved

Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

7 years ago

Solved

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

7 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago