Answered
Problem Plotting 4D data
The problem you're seeing is that the area of the edges is significant compared to the area of the faces. You could try either ...

15 years ago | 2

Answered
3D signed distance transform
You could separately create a map of points inside a closed surface. M = imfill(bw_image,'holes'); Now anything true in M wi...

15 years ago | 0

| accepted

Answered
Determine the exponential function
That looks like an exciting homework problem. Have fun!

15 years ago | 0

Answered
Is there a command like surface detection similar to edge detection
# Edge detection on each slice along the 3rd dimension; # Permute it so the third dimension is the first dimension: I2 =permu...

15 years ago | 1

Answered
Creating a Histogram of Specific Bin Size
cat(2,fmx,fmx2,fmx3) Run this by itself in the command window and see what it creates! The secret to learning difficult th...

15 years ago | 0

Answered
passing data between two different gui window using guide
doc setappdata doc getappdata doc guidata

15 years ago | 1

Answered
Image Processing ( calculate perimeter)
cprops(:).Perimeter Will list off the six perimeters (one for each of the six binary objects)

15 years ago | 0

Answered
add color noise to an image?
Irgb = repmat(I,[1 1 3]); Irgb(:,:,2) = I(:,:,2)+(rand(size(I))-.5)*20 %add +- 10 green noise

15 years ago | 0

Answered
Matrix Averaging
A = rand(5); A1 = A(:,1); A1(A1>.5) = mean(A(A1>.5,2:5),2) Like this? If not, please provide a small example.

15 years ago | 0

Answered
random matrix
x1 = rand(5); x2 = rand(5); x1 = bsxfun(@rdivide,x1,sum(x1,1)); x2 = bsxfun(@rdivide,x2,sum(x2,2));

15 years ago | 0

Answered
Vectorize the following loop
Note sure if it'll be faster but: [row col] = find(bsxfun(@gt,c(:)',x(:))); A2 = accumarray(row,col,[],@min)';

15 years ago | 0

Answered
How to write such a matrix
What's wrong with the method that you have above; i.e. defining it explicitly? It'll be the fastest and easiest to read.

15 years ago | 0

Answered
What you get with: (0:n-1)*n + 1:n
And the transpose acts as expected: >> ((0:n-1)*n)' ans = 0 4 8 12 >> ans+(1:n)' an...

15 years ago | 1

Answered
What you get with: (0:n-1)*n + 1:n
I'm able to replicate this. Mac OSX R2009b. It also fails if I break it between lines: >> ((0:n-1)*n) ans = 0 ...

15 years ago | 0

Answered
Importing multiple files.
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> The FAQ!

15 years ago | 0

Answered
Transfer function ANN
The infinite monkey says: tribas

15 years ago | 0

Answered
How to extract features from an image
Isolate the channel of the color you care about and threshold. E.g. for blue: M = Irgb(:,:,3)>56; %map of pixels with some bl...

15 years ago | 0

Answered
Error in MATLAB image processing
Well did you define a function named "map"? I'd guess not since that's the error you're receiving...

15 years ago | 0

Answered
How to display regression equation without use of toolbox?
And for a generalization of a polynomial equation: [P] = polyfit(x,y,order); %x,y,order polynomial eqn = ['y = ' sprintf('%3....

15 years ago | 0

Answered
Subscripted assignment dimension mismatch - Help
It means you're trying to put more (or less) elements in a place than you've indexed. %E.g. A = [2, 3] B = magic(3) B(1,...

15 years ago | 0

| accepted

Answered
movavg function lead and lag meaning
When you're replacing the value of a point with the mean of it and the next point; you get lead. When you replace the value...

15 years ago | 0

Answered
Displaying a cube of 255x255x255
V = false(257,257,257); V(2:end-1,2:end-1,2:end-1) = true; %True cube with one exterior layer of false patch(isosurface(V,0)...

15 years ago | 0

| accepted

Answered
Subtract corresponding nonzero element from each element in a vector
%EDIT again Vec1=[0 1 1 0]; Vec1(~Vec1) = nan; Vec2=[1 3 5 7]; C2 = bsxfun(@times,Vec1.',abs(bsxfun(@minus,Vec2.',Vec2))); C2...

15 years ago | 0

| accepted

Answered
first derivative
Numerically, yes: doc diff

15 years ago | 0

Answered
I need to write a function which prints out prime number between the two arguments.
functon the_primes = primenum(N,M); ns = N:M the_primes = ns(isprime(ns));

15 years ago | 1

Question


Why are questions showing up with WRONG authors?
There are a few question where the author is showing up incorrectly on the ANSWERS' home page. <<http://img9.uploadhouse.com/fi...

15 years ago | 2 answers | 0

2

answers

Answered
image processing
HW = image_with_handwriting < threshold; HW will be the handwriting image (also the abbreviation for homework; how cool is ...

15 years ago | 0

Answered
ROI optimization
%An Image Processing Morphology Approach You could use imdilate and imerode with an appropriate structuring element (tuned fo...

15 years ago | 0

Answered
How to create a (nxn) matrix with alternating sign
%And a BSXFUN solution n = 3; r = 4; c = 5; m = bsxfun(@(x,y)n*(-1).^(x+y),(1:r).',1:c)

15 years ago | 0

Question


How do I properly cite IPT demo images?
Such as the cameraman: * Can I use him? * Do I cite MATLAB and MIT or just MIT? * Do I have to ask MIT for permission or is...

15 years ago | 3 answers | 1

3

answers

Load more