Answered
label a matrix according to another label matrix
>> C = ismember(A,find(B)) Enjoy!

11 years ago | 1

Answered
Clustering GPS points based on distance between points?
Given a Geopoint P, which has an elevation property (in some unit) you can calculate the distance between the points using a ref...

11 years ago | 0

Answered
How to increase the size of the subplots
You could re-"Position" each axes separately by setting the _'Position'_ property to a new value. However, I might consider...

11 years ago | 0

Answered
Cdata Help please i cant do it
CData is just a small image, you can use any image and you can resize images if necessary with |imresize| in the Image Processin...

11 years ago | 0

Answered
How from uint8 to 0 and 1?
Igray = rgb2gray(I); BW = im2bw(Igray,graythresh(Igray)); imshow(BW)

11 years ago | 0

| accepted

Answered
addlistener in R2014b can't access new property value?
The NewValue event property is gone in R2014b. It is probably a release notes bug that it's not in there. Why do you want it...

11 years ago | 0

Answered
Determining what type of data is in my array
x = [1 nan pi] x2 = x(~isnan(x)) |isnan| will be your friend.

11 years ago | 2

Answered
matlab did not found the file but it is there and comand window has no problem?
Probably need a .\ At the beginning to indicate that data is a folder fn = '.\Data\etc' You can use |fullfile| to help w...

11 years ago | 0

Answered
Automatically select a checkbox
Set the value of it: checkbox = uicontrol('style','checkbox'); set(checkbox,'Value',true) Since you're using GUIDE, you...

11 years ago | 0

| accepted

Answered
Write a script/function/program that converts a user inputted number or Roman numeral to its equivalent?
<http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=roman+numeral> No reason to reinvent the wheel...

11 years ago | 0

Answered
Is it possible to conditionally switch between parallel and non parallel for loops?
I would just write two separate subfunctions one which uses parfor and one that doesn't. Parfor without any workers will be les...

11 years ago | 0

Answered
How to take data from oscilloscope to Matlab ?
<http://www.mathworks.com/help/releases/R2014b/instrument/index.html> Probably a good place to get started.

11 years ago | 0

| accepted

Answered
Why is code faster when broken across multiple lines?
The JIT accelerator is _sometimes_ able to better optimize code that has been split into pieces.

11 years ago | 1

Answered
How to specify number of threads a matlab session can use
Start MATLAB from the system command prompt with |-singleCompThread| flag. Or use the Parallel Computing Toolbox and |parfor|...

11 years ago | 0

Answered
Uipanel always on top in 2014b?
Yes, you will need to parent the uicontrols to the uipanel. There is an app to help find these occurrences <http://www.mathw...

11 years ago | 0

| accepted

Answered
Matlab version r2013b problem
|ssim| was added to the Image Processing Toolbox in R2014a. If your company/university is current on maintenance, you should be...

11 years ago | 0

| accepted

Answered
STOP dsp.audioplayer object from a GUIDE
<http://blogs.mathworks.com/pick/2014/10/24/stop/>

11 years ago | 0

Answered
How do I clear the command window in a parfor loop?
The clc command does clear the command window of the worker it was run on, not the client session. One possible workaround ...

11 years ago | 0

Answered
How can I pull a random image to display, from a folder of images using Psychtoolbox?
Perhaps use |randi| to generate a random index between 1 and the number of files.

11 years ago | 0

Answered
solve() only gives one of infinitely many solutions.
The problem is that you're asking for a solution for both variables. Instead, solve for one at a time: solve(x*y==1,x) ...

11 years ago | 0

Answered
How to estimate depth from gradient?
If your pixels represent depth (i.e. change in a third dimension), then integrating the gradient should give you height. This m...

11 years ago | 0

Answered
How to plot a cfit object in the borders of the original data
Rather than using |plot(cfitobj,...)|, evaluate the cfit objects on the data range you care about: xr = x(x>xmin & x<xmax);...

11 years ago | 0

Answered
intlinprog - MaxTime and LPMaxIter
You cannot set them to inf but you can set them to a large number. >> opts = optimoptions('intlinprog','MaxTime',inf,'LPMax...

11 years ago | 0

| accepted

Answered
Still unable to use sound function
Yes *in reply to comments*, it's probably being used wrong: [ap,x] = audioplayer Instead of ap = audioplayer Wou...

11 years ago | 0

Answered
Matlab GUI does not respond when running ode solvers
You can put |drawnow| in your ode function. This forces the event queue (button pushes, callbacks etc., to be flushed)

11 years ago | 0

Answered
Doubt with a for and adding values into a matrix
Look at the |blkdiag| function. C = repmat({ones(1,4)},1,5) blkdiag(C{:}) 4 and 5 are hardwired to match your above exa...

11 years ago | 0

| accepted

Answered
urlread vs. view source - need view source data
Perhaps try |webread| in R2014b: <http://www.mathworks.com/help/releases/R2014b/matlab/ref/webread.html>

11 years ago | 0

Answered
How to do sequences and sums in matlab
Here's the first one: (1:10).^2 Now you do the second one!

11 years ago | 0

| accepted

Answered
Tracking movement of bubbles in water to obtain velocity
Easiest way would be to find their centroids ( |regionprops| or |vision.BlobAnalysis|), calculate the distance between them ( |h...

11 years ago | 0

Load more