Answered
Gaussian Filter Terminology - sigma, kernal
You got it wrong. Sigma determines the width of the Gaussian. The larger sigma, the more values you need to sample the Gaussian ...

13 years ago | 0

Answered
Creating a function with a logical output.
There's nothing wrong with your function, you can just do it more concisely function output = TLU( inputs, weights, thresho...

13 years ago | 0

| accepted

Answered
quantify difference between discrete distributions
Use the Two-sample Kolmogorov-Smirnov test from the Statistics Toolbox.

13 years ago | 0

| accepted

Answered
how to save the image
imwrite(nim, 'newimage.png');

13 years ago | 0

Answered
find the location of minimum value
That's easy X = rand(4, 4, 4, 4); [val ind] = min(X(:));

13 years ago | 1

Answered
I have divided one image into subimages--how can I show the subimages lined up near each other?
This implements suggestion #4 of Image Analyst. I = imread('peppers.png'); I = im2double(I); Nsubimages = [4 3]; ...

13 years ago | 0

| accepted

Answered
Plotting of a function of 3 variables
One way is to look at 3 cross-sections along the main axis for i = 1:50:100 mesh(V(:, :, i), 'EdgeColor', 'k') if i ==...

13 years ago | 0

Answered
ttest : independent and dependent samples
If the two groups contain data from the same sample both groups are not independent. You can use paired-sample t-test if you hav...

13 years ago | 0

| accepted

Answered
How to select a number of points from a 2D matlab plot?
ginput does this job.

13 years ago | 0

| accepted

Answered
Removing cell arrays from code
Yes.

13 years ago | 1

| accepted

Answered
How can i find the position of a subimage in larger image ?
F = im2double(imread('cameraman.tif')); I = rand(512); I([1:size(F,1)] + 30, [1:size(F,2)] + 80) = F; disp('Search targ...

13 years ago | 0

| accepted

Answered
Plot markers around the perimeter of a shape
Draw sample contour (e.g, a circle) th = linspace(0, 2*pi); x = cos(th); y = sin(th); plot(x, y, 'k-') Draw N...

13 years ago | 0

| accepted

Answered
??? Index exceeds matrix dimensions.
Probably you have defined a variable distance that shadows the function distance. You can check that by using which distan...

13 years ago | 1

Answered
How can I use a loop to subtract a pixel's gray level to it´s neighbor pixel's gray level?
I = im2double(imread('cameraman.tif')); Ix = diff(I')'; Iy = diff(I);

13 years ago | 0

| accepted

Answered
How to get the value of 'x' from a figure?
Depending on what you need, try xlim or get(gca, 'XTick')

13 years ago | 0

Answered
element wise concatenation of square matrices
Like this? C = arrayfun(@(x) ['<' num2str(A(x)) ',' num2str(B(x)) '>'], 1:numel(A), 'un', 0); C = reshape(C, [3 3]);

13 years ago | 0

Answered
How can I resolve this problem using vertcat on matrices for daily files to create a single matrix for the whole year?
importdata returns a structure, not a matrix; whos newData1

13 years ago | 0

Answered
I want to divide the 360 degree hue circle into 10 equal sector
Ncolors = 10; I = imread('peppers.png'); HSV = rgb2hsv(I); H = HSV(:,: ,1); Hnew = zeros(size(H)); delta ...

13 years ago | 0

Answered
How to find the center point in this plot?
x = rand(1,100); y = rand(1,100); plot(x, y, 'r*') hold on plot(mean(x), mean(y), 'k*', 'MarkerSize', 20)

13 years ago | 0

Answered
seconds from the clock function?
c = clock; seconds = c(6)

13 years ago | 0

| accepted

Answered
How to paste or add an image of smaller size to a blank frame of bigger size
I = imread('cameraman.tif'); I = im2double(imresize(I, 0.2)); E = ones(300); E([1:size(I,1)] + 40, [1:size(I,2)] + 120) =...

13 years ago | 0

| accepted

Answered
Help on string in .m file
Nfiles = 100; for i = 1:Nfiles matfile = ['B0E ' int2str(i)]; load(matfile) eval(['f' int2str(i) '(:, :, 1) =...

13 years ago | 1

| accepted

Answered
Make a polar plot from data
theta = pi*rand(1, 100); th = linspace(pi/10, pi, 10); hi = hist(theta, th); polar(th, hi/numel(theta))

13 years ago | 0

| accepted

Answered
How to select specific row in a matrix
X = rand(100, 13); ind0 = 1:5; ind1 = ind0; for i = 1:4, ind1 = [ind1 ind0 + 20*i]; end ind2 = setdiff(1:100, ind1); ...

13 years ago | 0

Answered
Make a polar plot from data
theta = acos(nz); rose(theta)

13 years ago | 0

Answered
Image patching for computing Guassian Kernel
I = im2double(imread('cameraman.tif')); Gsk = fspecial('gaussian',[12 12],3); Idxy = I - imfilter(I, Gsk);

13 years ago | 0

Answered
passing lots of variables between function efficiently?
Instead of writing statements like nelx = Prob.nelx; nely = Prob.nely; You can do your computations on Prob.nelx and ...

13 years ago | 1

Answered
ommiting blanks in a string
s = [' hallo a b c'; 'asdsdf v vvvv ']; for i = 1:size(s, 1) disp(s(i, setdiff(1:length(s(i,:)), findstr(' ', s(i...

13 years ago | 0

Answered
variables in m files
Define function function A B C = myfunction(d, p, t) FC = 360; A = (hex2dec(d)*0.5*FC/2^18); B = (hex2dec(p)*0.5*FC/2^...

13 years ago | 0

Answered
Concatenating 'mat' files into a single file
First load the file, assuming that each file contains a variable same as its filename, so after load A you have variable A in yo...

13 years ago | 0

Load more