Answered
how to produce a signal distorted with noise?
It depends on what characteristics you want the noise to have. If you want noise from a normal distribution with the samples ind...

15 years ago | 0

Answered
Scale a histogram to get area = 1
If equally-spaced bins are OK, you can do this: % some data d = randn(10000, 1); %compute histogram nbins = 50...

15 years ago | 1

Answered
Dear sir my research topic is object detection in image using pso. So sir i wnat to see the array generated by agiven input.
The functions image(C) and imagesc(C) will display the array C as an image in a figure window. If you have the Image Processing ...

15 years ago | 0

Answered
undefined variable, passive variable vector
In MATLAB, you probably don't need to make the vector before you know its size. You don't have to declare variables, so the best...

15 years ago | 1

Answered
whay do we use @(t) in our code???
It's constructing anonymous functions. See <http://www.mathworks.com/help/techdoc/matlab_prog/f4-70115.html> and <http://www.mat...

15 years ago | 0

Answered
Combine Matlab and Java
I've used MATLAB to call Java methods. One purpose was to capture and analyse data from a Phidgets accelerometer, which didn't h...

15 years ago | 0

Answered
xcorr vs conv: in latest MATLAB version
Surely the definition of xcorr was, and still is, the final formula you give (with the + sign in the index), and this is consist...

15 years ago | 0

| accepted

Answered
How are method names with a dot in them accessed in classes?
For normal classes, the set/get methods are called automatically when you assign to or access a property: h.AccountStatus = '...

15 years ago | 2

Answered
How to set Frames Per second
I do not think getsnapshot is suitable for working with a video stream - it's really for getting a single image at a random time...

15 years ago | 0

Answered
How long have you been using matlab? tell us your story
I learnt to program originally in Fortran. (My first programs, as an undergraduate, were on punched cards.) After various other ...

15 years ago | 4

Answered
Infinite loop
CTRL+C should normally stop such a script, unless you're calling a MEX function.

15 years ago | 0

| accepted

Answered
Search nx3 array row-wise for 2 equal elements
My initial idea is below, but someone may be able to improve on it in efficiency or elegance. There is an awkwardness in this s...

15 years ago | 0

| accepted

Answered
edge parameter
I'm not sure what the edge parameter of an image is. If you mean the edge map, and you have the Image Processing Toolbox, the ed...

15 years ago | 0

Answered
Verifying user input
If you're using a Command Window interface, then you could employ this function, which I wrote a while back. I use it to ensure ...

15 years ago | 2

| accepted

Answered
What is the measurement unit for the optical flow velocity components?
The units depend on what the function OpticalFlowMatlab does. I don't know this function, so I can't be sure. Normally, the unit...

15 years ago | 0

| accepted

Answered
rgb components
It depends on how the image is currently stored. Assuming it is stored as an RGB image, you can extract the components by indexi...

15 years ago | 1

Answered
extract randomly a pair from a list
Two suggestions. First: selector1 = @() list(ceil(rand*size(list,1)), :); Then each time you call x = selector1() you wi...

15 years ago | 0

| accepted

Answered
Define shared subfunctions inside a classdef *.m file?
Non-static methods require an object as the first argument, and as my_pi is not declared static and doesn't have an argument, it...

15 years ago | 0

Answered
eval inside arrayfun gives strange error
First, I have to add myself to the list of people for whom it is painful to see someone using sequential variable names construc...

15 years ago | 2

Answered
How to plot a graph of a line of pixels of an image showing black to white intensity across it.
If you have the Image Processing Toolbox, have a look at improfile.

15 years ago | 2

| accepted

Answered
Dynamically write images in different names?
See "How can I process a sequence of files?" at <http://matlab.wikia.com/wiki/FAQ>

15 years ago | 0

Answered
Converting gray scale to ycbcr??
A greyscale image has no colour information, but you can still represent it as ycbcr if you wish - though it's not clear why you...

15 years ago | 0

| accepted

Answered
I want to compare a given input image from a set of images and display the corresponding image
You need to put the different filenames into a cell array. If you concatenate them into an ordinary array, you just get a long s...

15 years ago | 0

| accepted

Answered
Path between pixels
The general statement can be expanded to a series of statements: (x0, y0) is adjacent to (x1, y1) (x1, y1) is adjacent...

15 years ago | 1

Answered
Hump-day puzzler.
If you can read very quickly: [fprintf('I love MATLAB') regexp('x', '(?@quit)')]

15 years ago | 2

Answered
Hump-day puzzler.
Assuming that execution time isn't a concern, and, please, no typing while the code is running: [fprintf('I love MATLAB') i...

15 years ago | 0

Answered
reconstruction of video from separated frames
Have a look at getframe, im2frame and avifile.

15 years ago | 0

Question


Finding example images in the distribution
Is there an easy way to find all the example images (such as pout.tif, greens.jpg) that come with MATLAB and any installed toolb...

15 years ago | 3 answers | 2

3

answers

Answered
detect the major color in an image- red or blue ?
The question here is surely how to define what you mean by "the major colour is green or red". If you can explain what that mean...

15 years ago | 1

Answered
Random Corner Patches
It depends on how you plan to use the random corners, and what statistics or other properties you want them to have. If you w...

15 years ago | 0

Load more