Community Profile

# David Verrelli

18 total contributions since 2011

#### David Verrelli's Badges

Contributions in
View by

Solved

Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

1 month ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

1 month ago

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

1 month ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

1 month ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

1 month ago

Solved

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

1 month ago

Solved

Add two numbers
Given a and b, return the sum a+b in c.

1 month ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

1 month 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:...

1 month ago

Answered
CIE-LCH colorspace range for skin color detection
The syntax looks wrong. Refer to <https://au.mathworks.com/help/matlab/ref/if.html> Try perhaps: if (C >= 11.64 ...

1 month ago | 0

Answered
car counting. speed calculation
Hi, Ben, Walter & A7mad. For me, I'd be concerned, if setting up two 'lines' at different distances along the road, about t...

1 month ago | 0

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

10 months ago

Answered
What are the answers to the Associate Exam Practice Questions?
The questions are more difficult than they might appear. After testing in MATLAB I could confirm the correct answers, and I rec...

10 months ago | 1

Answered
How can I get the new position coordinates of my object after I rotate it using the HGTRANSFORM function?
Two short follow-up points: (1) It doesn't seem to be necessary to split the manual transformation into two separate steps ...

1 year ago | 0

Answered
How do I install additional toolboxes into an existing installation of MATLAB?
The answer by the MathWorks Support Team focusses on Toolboxes that are supplied and licensed by MathWorks. (Which also appeare...

1 year ago | 4

Responded

Re: Problem creating animation output file from Matlab m-file
Hello, For example, I tried creating an animated GIF using images of mixed sizes, mixing landscape and portrait orientations. ...

2 years ago | 19573 views

Responded

Re: Video Formats supported by Matlab
Chaos" <rothko.fan@gmail.com> wrote in message > using matlab to play any kind video format is practically a waste of time. ther...

5 years ago | 11407 views