Answered
find most frequent characters in a string
One way to get the commonest n characters, in descending order of frequency: >> str = 'hello world'; >> n = 5; % number of...

14 years ago | 1

Answered
Segment Vehicles in crowded scene.
I suggest that you approach this by trying to generate a background image from the video. You are able to segment the images whe...

14 years ago | 1

| accepted

Answered
Feeding a vector to a cost function
How about CostFunction(vector(:,1), vector(:,2)) though whether this is useful depends on what you want to achieve.

14 years ago | 0

Answered
How to make intensity attenuated image or defocused image
Your question is not very clear, but I think you want to know how to take a focused image and generate a new image that simulate...

14 years ago | 0

| accepted

Answered
Represent an image as vector
vector = img(:);

14 years ago | 0

Answered
Sobel Edge Thresholds
I think there are two problems here. The first is that it's not clear exactly what the Sobel option in edge() really does, as...

14 years ago | 0

Submitted


Image correspondences using cross-correlation
Find matching features in pairs of images using normalised cross-correlation: class file and demo.

14 years ago | 4 downloads |

5.0 / 5
Thumbnail

Answered
IFFT21
Yes. Use ifftshift before ifft2.

14 years ago | 0

Submitted


Extended Brookshear Machine emulator and assembler
Emulator and assembler for a simple computer, a teaching aid for computer science courses.

14 years ago | 3 downloads |

0.0 / 5
Thumbnail

Answered
First and second derivative of the function using fft?
See my answer to <http://www.mathworks.co.uk/matlabcentral/answers/16141 this question>.

14 years ago | 0

| accepted

Answered
CELL2CSV
Maybe you were using <http://www.mathworks.com/matlabcentral/fileexchange/7601-cell2csv this file exchange contribution>. It's u...

14 years ago | 0

Answered
SIFT feature extraction, Knowledge base classifier
Have a look at <http://vision.ucla.edu/~brian/papers/vedaldi10vlfeat.pdf VLFeat>.

14 years ago | 0

| accepted

Answered
reaaranging filesnames
You can sort the filenames into the order you require like this. First, all the filenames need to be a cell array. Their orde...

14 years ago | 0

Answered
Slope Magnitude Technique with Sobel Operator
As Walter says, it's not clear what you mean by extracting shape. I'm also not sure whether you want help in implementing the th...

14 years ago | 0

| accepted

Answered
JPG to RGB image?
JPEG images are read directly as rgb - so there's no map. So you don't need the call to ind2rgb (or the second result from imrea...

14 years ago | 0

Answered
Log gabor filter
This looks good: <http://www.csse.uwa.edu.au/~pk/research/matlabfns/PhaseCongruency/Docs/convexpl.html>

14 years ago | 0

Answered
Circular window
*EDIT*: Deleted request for additional information. Modified reference to original question. Added suggested code. This relates...

14 years ago | 1

| accepted

Answered
with this code, im trying to display the results for (y0-y100). But im always getting the error. need help on this.thanks
In MATLAB, indices start from 1. The first time through the loop, the code tries to do this: y(1) = y(0)*1; but there is no ...

14 years ago | 0

Answered
Interpret string to form sequence of numbers
Could you ask the user to enter 4:9 instead of 4-9, and 12:2:20 instead of 12-20(2)? If so (and also if you can trust the user n...

14 years ago | 2

| accepted

Answered
using classdef, is it possible to mix run-time data access through the dot syntax with methods elegantly?
"Elegantly" is hard to do in this context, I think. There's some discussion of this kind of issue <http://www.mathworks.co.uk/ma...

14 years ago | 0

| accepted

Answered
Writing matlab function to go through all the elements of its input
It's just z = hypot(x, y); The function automatically operates on all the x,y pairs and returns a matrix of the results....

14 years ago | 1

Answered
converting data from minutes to hours
>> data_minute = rand(180, 1); % synthetic data >> data_hour = mean(reshape(data_minute, 60, []))

14 years ago | 0

| accepted

Answered
Sliding a circular window on an image for feature extraction...
If you know how to work with a sliding rectangular window, but you need to use a circular window instead, it might help to learn...

14 years ago | 0

Answered
Smoothing the edges of an image
If you use the edge() function, try the 'canny' option and adjust the sigma parameter to give edges as smooth as you need them.

14 years ago | 3

| accepted

Answered
??? Improper assignment with rectangular empty matrix.
I suspect your problem is that this line: X=x(1+(i-1)*step:seg+(i-1)); should read X=x(1+(i-1):step:seg+(i-1));

14 years ago | 0

Answered
renaming a cell
naming(1) is a cell, but naming{1} is a string. *EDIT*: added example >> naming = {'data1', 'data2', 'data3', 'data4'...

14 years ago | 0

Answered
starting with oop
You need to replace obj.t1=myclass.p(arg1); with obj.t1=myclass.pi(arg1); You're making the (I suspect quite com...

14 years ago | 0

Answered
folder in a directory
It's perhaps worth noting that 'folder' and 'directory' mean the same thing. Anyway, do you want something like this: files...

14 years ago | 2

Answered
calling method (and sum'ing answer) on every class instance in a matrix
sum(arrayfun(@(x) GetTotal(x), myCollection))

14 years ago | 0

| accepted

Answered
Help with function dealing with struct and importing data.
I think the instruction about attaching the text file just means that you submit both the m-file (containing your code) and the ...

14 years ago | 0

| accepted

Load more