Solved

The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

10 years ago

Solved

Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

10 years ago

Why does MATLAB crash when I use the Image Acquisition Toolbox?
The first thing that I would check is that you are using the correct version of the Point Grey FlyCapture software. I believe th...

10 years ago | 0

How can I adjust the contrast of a live video?
There isn't really a good way to get around this. What happens when you set the contrast while the preview is running is that th...

10 years ago | 0

| accepted

Solved

Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

10 years ago

Solved

Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

10 years ago

Solved

Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

10 years ago

Solved

Find the peak 3n+1 sequence value
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...

10 years ago

Solved

Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...

10 years ago

Solved

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

10 years ago

Video Object wont get accepted
The second argument to the |getdata| command should be a single number, not a vector. You set the |FramesPerTrigger| property to...

10 years ago | 1

| accepted

Solved

Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

10 years ago

Solved

Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

10 years ago

Solved

QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

10 years ago

Solved

Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

10 years ago

Solved

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

10 years ago

Solved

Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

10 years ago

Solved

Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

10 years ago

Solved

Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

10 years ago

Can I use the Image Acquisition Toolbox to write to disk with two video sources and two output files at the same time?
If I understand your question properly, the problem doesn't seem to be with the disk logging, but with starting the acquisition....

10 years ago | 0

How to increase image quality when taking images through Image Acquisition Toolbox beyond available options in Hardware Browser?
The Logitech c920 has a 2304x1536 pixel sensor, so this is the maximum video resolution available using that camera. The larger ...

11 years ago | 0

What is the difference between videoinput and imaq.VideoDevice?
The object returned by |imaq.VideoDevice| is a <http://www.mathworks.com/discovery/stream-processing.html System Object> and is ...

11 years ago | 2

| accepted

Solved

Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

11 years ago

Solved

Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

11 years ago

Solved

Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

11 years ago

code for creating a realtime video and storing it at a fixed place using webcam
There is an <http://www.mathworks.com/help/imaq/examples/logging-data-to-disk.html example> in the doc that shows how to do this...

11 years ago | 0

imwrite through step() to snapshot a video saves red images why?
It looks like you are using a YCbCr format of your camera. When you are previewing or writing to disk, the toolbox converts the ...

11 years ago | 1

Solved

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

11 years ago

Simultaneous Video Display with continuous serial communication
The big problem that I see is in your startStopCamera_Callback function. You are continuously calling trigger and then getdata i...

11 years ago | 0

| accepted