79 total contributions since 2012

Professional Interests: Imaging, image processing, physics, nmr, spectroscopy

Answered

best way to dynamically update a line handles' XData and YData?

Using the HG2 dot notation may speed things up enough for you (see <http://undocumentedmatlab.com/blog/performance-accessing-han...

best way to dynamically update a line handles' XData and YData?

Using the HG2 dot notation may speed things up enough for you (see <http://undocumentedmatlab.com/blog/performance-accessing-han...

5 years ago | 0

Answered

tabulate() is not working properly

It sounds like you don't have the tabulate function. This is included with the stats + machine learining toolbox. Can you paste ...

tabulate() is not working properly

It sounds like you don't have the tabulate function. This is included with the stats + machine learining toolbox. Can you paste ...

5 years ago | 0

Answered

Index of element to remove exceeds matrix dimensions.

Because you're removing elements as you go, your array gets shorter, and your fixed index (1:7) can go out of bounds. This is...

Index of element to remove exceeds matrix dimensions.

Because you're removing elements as you go, your array gets shorter, and your fixed index (1:7) can go out of bounds. This is...

5 years ago | 0

| accepted

Answered

How can I say if (A & B) or C in Matlab?

| operates elementwise on arrays. You might want to check the size of A, B, and C. _If_ then operates on the array (See @Stephen...

How can I say if (A & B) or C in Matlab?

| operates elementwise on arrays. You might want to check the size of A, B, and C. _If_ then operates on the array (See @Stephen...

5 years ago | 0

| accepted

Answered

How can I get the XMinorTick as a numerical value?

with ax = your axes object ax.XAxis.MinorTickValues

How can I get the XMinorTick as a numerical value?

with ax = your axes object ax.XAxis.MinorTickValues

5 years ago | 0

Answered

Displaying MATLAB output in linux terminal

Pardon my *nix ignorance, but doesn't the & command spin off the process in a new terminal? If so it's probably dumping the mess...

Displaying MATLAB output in linux terminal

Pardon my *nix ignorance, but doesn't the & command spin off the process in a new terminal? If so it's probably dumping the mess...

5 years ago | 0

| accepted

Answered

Trying to get matlab to edge detect in shadow area

Have you taken a look at the <http://www.mathworks.com/help/images/examples/correcting-nonuniform-illumination.html non-uniform ...

Trying to get matlab to edge detect in shadow area

Have you taken a look at the <http://www.mathworks.com/help/images/examples/correcting-nonuniform-illumination.html non-uniform ...

5 years ago | 0

Answered

User selects image in gui and selected image goes into axes??

The variable 'i' in your code is the filepath to the image, not the image itself, you still have to load the image: i = uig...

User selects image in gui and selected image goes into axes??

The variable 'i' in your code is the filepath to the image, not the image itself, you still have to load the image: i = uig...

5 years ago | 0

| accepted

Answered

finding a changing dominant tone in a signal

Have you tried: Raw data -> BP filter -> Spectrogram -> peak finding You seem to have the parts for it, and I would expect...

finding a changing dominant tone in a signal

Have you tried: Raw data -> BP filter -> Spectrogram -> peak finding You seem to have the parts for it, and I would expect...

5 years ago | 1

Answered

how to calculate the intersection area of two ellipses

Here is an <http://arxiv.org/abs/1106.3787 arxiv paper> on ellipse intersection algorithms.

how to calculate the intersection area of two ellipses

Here is an <http://arxiv.org/abs/1106.3787 arxiv paper> on ellipse intersection algorithms.

5 years ago | 0

Answered

Algo for finding nearest coordinates of arbitrary point along complex 3D line?

Find the minimum squared distance between the point and the line: pointX = point(1); pointY = point(2); pointZ = poin...

Algo for finding nearest coordinates of arbitrary point along complex 3D line?

Find the minimum squared distance between the point and the line: pointX = point(1); pointY = point(2); pointZ = poin...

5 years ago | 1

Answered

Reading in ascii files with white space as delimiter.

Import data seems to work pretty well (but doesn't directly get you the headers): importdata('radiosonde.ascii', ' ', 3) ...

Reading in ascii files with white space as delimiter.

Import data seems to work pretty well (but doesn't directly get you the headers): importdata('radiosonde.ascii', ' ', 3) ...

5 years ago | 0

Answered

Problem trying to install raspberry support package

Looks like there's an <http://www.mathworks.com/matlabcentral/answers/182841-cannot-download-http-www-mathworks-com-supportpacka...

Problem trying to install raspberry support package

Looks like there's an <http://www.mathworks.com/matlabcentral/answers/182841-cannot-download-http-www-mathworks-com-supportpacka...

6 years ago | 0

Answered

Can I build an OCR engine from scratch using matlab?

There's no reason why you can't - just use Arabic characters as a training set for an existing OCR setup. I think the better ...

Can I build an OCR engine from scratch using matlab?

There's no reason why you can't - just use Arabic characters as a training set for an existing OCR setup. I think the better ...

6 years ago | 0

Answered

Bining some data in 50 classes without knowing the limits

Sounds like you're trying to make a <http://www.mathworks.com/help/matlab/ref/histogram.html histogram> (hist in revisions prior...

Bining some data in 50 classes without knowing the limits

Sounds like you're trying to make a <http://www.mathworks.com/help/matlab/ref/histogram.html histogram> (hist in revisions prior...

6 years ago | 0

Answered

how to get back the rgb image from r g b component ?

Exactly the opposite of how you pulled out the data; im = imread(...); red = im(:,:,1); grn = im(:,:,2); blu = im(:,:,3)...

how to get back the rgb image from r g b component ?

Exactly the opposite of how you pulled out the data; im = imread(...); red = im(:,:,1); grn = im(:,:,2); blu = im(:,:,3)...

6 years ago | 0

| accepted

Answered

How to use accumarray?

You could use a <http://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html Table> structure. First, I'd conve...

How to use accumarray?

You could use a <http://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html Table> structure. First, I'd conve...

6 years ago | 0

Answered

Error with matrix dimensions

Let's take a look at the definition of; diffHist= zeros(numFrames,1); This is a [numFrames x 1] size array. Into this yo...

Error with matrix dimensions

Let's take a look at the definition of; diffHist= zeros(numFrames,1); This is a [numFrames x 1] size array. Into this yo...

6 years ago | 0

Answered

substituting value in matrix does not work for some reason

Logical indexing makes this much easier; B(A==NaN) = NaN;

substituting value in matrix does not work for some reason

Logical indexing makes this much easier; B(A==NaN) = NaN;

6 years ago | 0

Answered

Create a Table with column vectors

The table data type is R2013b and above. If you upgrade, you can do something like: volts = [1:100]'; current = sin(linspa...

Create a Table with column vectors

The table data type is R2013b and above. If you upgrade, you can do something like: volts = [1:100]'; current = sin(linspa...

7 years ago | 0

Question

Error using gop -> Error detected on worker N -> Error during serialization

I'm receiving an error running distributed code on a cluster; Error using gop (line 75) Error detected on worker 5. Error...

7 years ago | 0 answers | 0

Answered

how do I insert a string var in title command using LaTeX/TeX

mytitle = sprintf('\\color{red}%d \\color{blue}%f',5,pi); title(mytitle)

how do I insert a string var in title command using LaTeX/TeX

mytitle = sprintf('\\color{red}%d \\color{blue}%f',5,pi); title(mytitle)

7 years ago | 0

| accepted

Answered

How to make 2 data sets the same size

Have a look at the resample function; >> help resample resample Change the sampling rate of a signal. Y = resam...

How to make 2 data sets the same size

Have a look at the resample function; >> help resample resample Change the sampling rate of a signal. Y = resam...

7 years ago | 0

| accepted

Answered

School may adopt Office365 and eliminate student user drives. Can students save to a cloud-based directory in MATLAB?

Why not? Dropbox just watches a local directory for changes. The only issue would be two copies of anything (Matlab, Excel, e...

School may adopt Office365 and eliminate student user drives. Can students save to a cloud-based directory in MATLAB?

Why not? Dropbox just watches a local directory for changes. The only issue would be two copies of anything (Matlab, Excel, e...

7 years ago | 1

Answered

delete a subplot and renew plot

Better yet, update using handles: figure; f = 2*pi; x = linspace(1,100); y = sin(x/f); subplot(2,2,1) plot(x...

delete a subplot and renew plot

Better yet, update using handles: figure; f = 2*pi; x = linspace(1,100); y = sin(x/f); subplot(2,2,1) plot(x...

7 years ago | 0

Answered

Find summation of white pixel of detected rectangle from a binary iamge??

You're making this too complex. It's a binary image, just sum the values of your sub-image and divide by the # elements. Pseudoc...

Find summation of white pixel of detected rectangle from a binary iamge??

You're making this too complex. It's a binary image, just sum the values of your sub-image and divide by the # elements. Pseudoc...

7 years ago | 1

Answered

[HELP] How to seperate cell with values greater than 230 into new cell.

<http://www.mathworks.com/help/matlab/ref/cellfun.html cellfun> is great for operating on cells; v = {1,3,400, 3, 400, 5} ...

[HELP] How to seperate cell with values greater than 230 into new cell.

<http://www.mathworks.com/help/matlab/ref/cellfun.html cellfun> is great for operating on cells; v = {1,3,400, 3, 400, 5} ...

7 years ago | 1

Answered

Which loop to run in parallel if I have three of them?

It's going to depend. Specifically, where is the heavy lifting done? If you have code that runs fast on a single CPU, it may ...

Which loop to run in parallel if I have three of them?

It's going to depend. Specifically, where is the heavy lifting done? If you have code that runs fast on a single CPU, it may ...

7 years ago | 0

| accepted

Answered

Passing parameters throughout nested functions

Is this in a GUI? I'd have a look at guidata() and at get/setappdata, both of which help solve the problem of handling data in G...

Passing parameters throughout nested functions

Is this in a GUI? I'd have a look at guidata() and at get/setappdata, both of which help solve the problem of handling data in G...

7 years ago | 0