Hi, I'm wondering what type of threshold would work well for distinguishing features that are very small (small in the xy sense) in comparison with the full spread, if that makes sense. The graythresh() function in Matlab that uses the Otsu method doesn't work too well for my data. Otsu is a clustering method where I think the # of pixel...
Hi, this is actually meant to be for a function called roipoly in matlab but it can be considered a general case problem.
Roipoly is a function which lets u select a polygon over an image, and returns a binary mask where u can use it to get indices of the desired polygon. (It is just a normal polygon after all).
My application (K-Neare...
Hello,
I'd really like to know if there's a way to add the colorbar properties we usually find in surface or mesh, but this time for a simple plot.
Thanx you!
...
I need to put a background image in a movie created using MATLAB?
...
I am using matlab for cluster visualization. I want to somehow get the color of my current cluster center fill in the plot and draw line of same color to cluster members. How can I get the color?
...
I don't know if Matlab can do this, but I want to store some strings in a 4×3 matrix, each element in the matrix is a string.
test_string_01 test_string_02 test_string_03
test_string_04 test_string_05 test_string_06
test_string_07 test_string_08 test_string_09
test_string_10 test_string_11 test_string_12
Then, I want to write ...
Hello,
There have been some posts here regarding image processing but I don't think that this question has been asked here. I have Matlab but not the image processing toolbox. I've tried to compress a figure and I want to save the result in the eps format. I have looked at imwrite but it doesn't have the eps format. Any suggestions...
The unit of x-axis is hours (h), and there are 24 hours in total.
The unit of y-axis is millions (m).
How do I calculate the area under the red curve in the image in units of m*h?
Important UPDATE
Only the image is readily available (not the data), and I want to calculate the area programmatically.
...
I have a matrix that is 1000x4, to use as an input for a function I need to add a new column that contains a certain string. So how can I say make a new column where all the values are 'TEST'?
Thanks,
CP
...
I know this is really basic, but I am new to matlab. After opening a .fig file, how do you actually work with the data in the command line? All I see is the picture. Im not sure how to actually get the data.
...
How would you efficiently build a cell array of strings which contain numbers (in my particular case, a cell array of labels for a legend).
Eg:{'series 1', 'series 2', 'series 3'}
I've tried things along the lines of
sprintf('series %i', {1:10})
but apparently sprintf and cell arrays don't play nice together.
Something like this ...
How to randomly pick up N numbers from a vector a with weight assigned to each number?
Let's say:
a = 1:3; % possible numbers
weight = [0.3 0.1 0.2]; % corresponding weights
In this case probability to pick up 1 should be 3 times higher than to pick up 2.
Sum of all weights can be anything.
...
Hi,
I'm just learning to use OpenCV and am having a problem with using DFT. I've done a signal processing class which used MatLab, so I'm trying to go through some of the exercises we did in that class. I'm trying to get and display the FT of an image, so I can mask some of the frequencies. I'd like to be able to see the FT, so I know ho...
we have a project in which we have to pick randomly generated numbers from a remote device, say mobile. there is a simple java application to generate numbers.
next, we have to recieve those numbers in our matlab program via bluetooth connection with the device. assuming those numbers are temperature readings, we want to recieve a new n...
Possible Duplicate:
How to reverse the color of a grayImage in matlab?
I want to convert between the following two images:
...
I want to create an image like this:
From an image like this:
UPDATE
Here's what's generated by 255-img, but the result doesn't match exactly:
...
I am working with the finacial tooldbox that has a type called FINTS, If I copy some code out of its toolbox directory to customize it, when I try do do something like fts.data, I get The specified field, 'data', does not exist in the object. But the same thing works fine in the matlab library directory. They are both in my path, so wh...
usually, symbolic functions return vectors for vector inputs:
syms('x');
f=x*2;
subs(f,[1 2 3])
outputs: [2 4 6]
but doing
f=sym('0');
subs(f,[1 2 3]);
outputs: 0
and not: [0 0 0]
so basically, my questions is how do I make f behave as a "normal" symbolic function.
I can do something ugly like f=x-x to create a function that alway...
I am using MatLabs UDP function in their instrument control toolbox to send data packets from one computer to another. The first computer is constantly updating data values and sending them to the other computer, and I want that computer to be able to query the first one for the most recent values whenever it needs them.
However, the...
Hi,
i am looking to implement the interp1, 1-D data interpolation (table lookup), function available in MATLAB in J2ME or JAVA. here is the link
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/interp1.html
Is there any library available in J2ME or JAVA which has already implemented the same function ? If not can anybody help...