Professional Interests: image processing, signal processing, color

Question

appdesigner code view ANNOYANCE!

the appdesigner code view has gotten into a state where every time i start a new line it pops up a code completion thing to inse...

3 meses ago | 0 answers | 0

Question

uitable UserData property has inconsistent type

I have an old GUI created with Guide that has a uitable. When I run it in 2014b, its property 'UserData' is initialized to ...

más de 5 años ago | 1 answer | 0

Question

Set axes color to 'none' in guide

How can I set the Color property of an axes to 'none' in GUIDE? I can't type 'none' in the property value box in property in...

más de 5 años ago | 0 answers | 0

Question

New Graphics troubles with GUIDE

I am having trouble updating a GUIDE built gui to work with 2014b. I have looked at the relevant answers and tried the apps sugg...

más de 5 años ago | 0 answers | 0

Question

How do I assign 3D variables when third dimension has size one?

Is this a bug? If not, how am I supposed to code this so dd1 has shape [2 3 1]? >> sd1 = reshape(1:12,[4,3,1]) sd1 = ...

más de 5 años ago | 1 answer | 0

Question

Unexpected singleton dimension removal

When I create a three dimensional array and assign it to an undefined array, the assignment does not behave as I expect if the ...

casi 6 años ago | 2 answers | 1

Question

Can I make exported functions list bigger?

In the library version of deploytool, 2013b, the exported functions appear in a tiny little list, even though the 'files require...

alrededor de 6 años ago | 0 answers | 0

Solved

Extract leading non-zero digit

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

casi 7 años ago

Solved

Make a Palindrome Number

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

casi 7 años ago

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

casi 7 años ago

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

casi 7 años 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 ...

casi 7 años ago

Solved

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

casi 7 años ago

Solved

Replace NaNs with the number that appears to its left in the row.

Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

casi 7 años ago

Solved

Find the longest sequence of 1's in a binary sequence.

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

casi 7 años ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

casi 7 años 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 ...

casi 7 años ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

casi 7 años ago

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

casi 7 años 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...

casi 7 años ago

Solved

Remove any row in which a NaN appears

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

casi 7 años ago

Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

casi 7 años ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

casi 7 años 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...

casi 7 años ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

casi 7 años 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:...

casi 7 años ago

Question

Compiled program won't run, win7 win8 64 bit

I have a compiled matlab application with GUI that I have regularly distributed when built with the 32 bit MCR. I recently compi...

alrededor de 7 años ago | 0 answers | 0

Question

Add files/folders in compiler

When I switched from 2012a to 2012b, the compiled program was no longer able to find files that I added using the 'Add files/fol...

más de 7 años ago | 0 answers | 0

Question

Sum of empty matrix

The sum of an empty matrix does not always follow the rule 'sum(empty) = 0'. What's up with this? >> sum(ones(1,0)) ans = ...

alrededor de 8 años ago | 2 answers | 3

Question

uigetfile Win7 Libraries unresponsive

I am using Windows 7. Using uigetfile, when I try to navigate to something in a library or in 'Recent Files', I get an error 'Th...

más de 8 años ago | 0 answers | 0