Answered
create vectors associated with each entry of an array and save them in a new matrix
Try W(2*(j-1)+k, :) = linspace(-A(j,k),A(j,k),4)

12 years ago | 0

| accepted

Answered
How to get a sum of a series
If you want the sum over i for each t, then it's Y = conv(X, A, 'valid');

12 years ago | 1

Answered
Undefined function or method 'E' for input arguments of type 'double'. And how to do summation of functions
The value of i is the vector (1:48)/2. That means that the four tests on the value of i don't make sense - they all return false...

12 years ago | 1

Answered
3d aray of images to 2d image
A = squeeze(a(1, :, :));

12 years ago | 1

Answered
How to deal with 32 bit and 64 bit integers in matlab?
Just convert to double or single, using for example y = sqrt(double(x)); Round the result and convert back to an integer...

12 years ago | 1

| accepted

Answered
Approximating double integral with only sum of sum and no for loops
How about integral2? There's also a recent blog on double integration which might help you get the most accurate results: http:/...

12 years ago | 0

| accepted

Answered
is there another data type other then double/single/uint with less memory requirements?
If you need floating point, then single is the smallest data type. The best solution may well be to process the large matrice...

12 years ago | 0

Answered
How to label a pixel of color image in region growing ?
I suspect that the value of T is one problem. T is based on the image gray-levels, but it is used to threshold squared gray-leve...

12 years ago | 0

Answered
how to calculate the distance between two centers in K-means algorithm?
Depends on how distance and displacement are defined, and also how the centres are represented. Typically though, if you have tw...

12 years ago | 0

Answered
Does the curl function in matlab calculates vorticity?
Yes it does. See http://en.wikipedia.org/wiki/Vorticity

12 years ago | 0

Answered
data differs by using imwrite
If you are saving the image as a JPEG, or in any other compressible format, then there might be data loss on writing which could...

12 years ago | 0

| accepted

Answered
User defined function runs without inputs
You say "It is clear that it is not running the file as a function" when you give the name without any arguments. I think this p...

12 years ago | 0

Answered
Help definitely needed! How do I load multiple txt files and change the varible names of each to include the date from file
Much better to use arrays rather than having different variable names. Have a look at structure arrays and cell arrays in the do...

12 years ago | 0

| accepted

Answered
What's wrong with my feature extraction code?
Descrip writes then reads contour.jpg, and then computes the result from that. One way to set about debugging would be to see wh...

12 years ago | 0

Answered
How to convert video into Frames
Is it possible for you to upgrade to version 2010b or later? If so, you could use VideoReader. vreader = VideoReader(vidfil...

12 years ago | 0

| accepted

Answered
How to find signature of the object for the given binary image?
It would help you to look at the documentation for bwboundaries - especially look at the examples. Your problem is that bwbo...

12 years ago | 0

Answered
How to create an empty array of structs?
For a description of the different kinds of empty structs, and a function that allows you to create each kind easily, see my Fil...

12 years ago | 0

Answered
'Subscripted assignment between dissimilar structures' thrown on empty struct
For some discussion of the different kinds of empty struct arrays, and also for an easy way to initialize struct arrays that are...

12 years ago | 0

Submitted


emptyStruct
Creates empty struct arrays of various kinds

12 years ago | 1 download |

5.0 / 5

Submitted


Max and min keeping NaNs
The max and min functions ignore NaN values. These functions keep them like arithmetic functions do.

12 years ago | 1 download |

0.0 / 5

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

13 years ago

Solved


Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

13 years ago

Answered
Image Analysis - Measuring change in roi for an image array
I'm not exactly sure what you mean by "roi" here, but the starting point would normally be to try thresholding followed by measu...

13 years ago | 0

Answered
Suggested starting point in real time image processing
I hope you have a the image acquisition toolbox. Make sure you use callback functions that are triggered every few frames, and n...

13 years ago | 0

Answered
Canny Edge Detection - Automatic/Adaptive Thresholding
The documentation ought to be explicit about points like this! I think you could reasonably put in an enhancement request. Wh...

13 years ago | 0

Answered
Call a Matlab function
while 1 your_function(); end The () is not necessary as there are no arguments, but I think they make the code easi...

13 years ago | 1

| accepted

Answered
The problem about dir function
You could do something like this: dstruct = dir('*.png'); names = {dstruct.name}; maxlen = max(cellfun(@length, names...

13 years ago | 0

Answered
how to find correlation between two columns, selecting rows on the basis of third column
I'm not sure what you mean by column A possibly being empty. Anyway, assuming that it contains the categories, you select the va...

13 years ago | 1

| accepted

Answered
creating matrix of 1 nd -1
Assuming that you want values of 1 and -1 only, you can do 2*randi(2, m, n) - 3

13 years ago | 0

Answered
matrix decision
I think you need y1=14400./d;%estimation y2=(0.0001759./(d.^2)).*(2-2*cos(9046./d)); but I see this gives a very big ...

13 years ago | 0

| accepted

Load more