Answered
ring (annulis) patch?
2d or 3d? For the 2d case just subtract circles. Learn how to make circles here: <http://matlab.wikia.com/wiki/FAQ#How_do_I...

15 years ago | 0

Answered
get maximum value of four arrays
max(cat(3,GM1,GM2,GM3,GM4),[],3)

15 years ago | 0

| accepted

Answered
Can I call this plot as Contour plot?
Sure: %your stuff followed by: title('Contour plot of x & y');

15 years ago | 1

Answered
Separating a group of higher intensity pixels in an image
I would do an: cirx = imfill(bw, 'holes'); on your circles. Then do a logical AND on this to get the areas inside the ...

15 years ago | 0

Answered
3d animation of a slice plot
using: arrayD = rand(300,300,300); Works for me.

15 years ago | 0

Answered
Normalized Cross Correlation with rotated images
<http://www.mathworks.com/matlabcentral/fileexchange/19086> Haven't used it but it claims to be able to.

15 years ago | 0

Answered
image segmentation
L = bwlabel(BW); imshow(L==n); %where n = the number of the object you wish to see

15 years ago | 0

Answered
Permutation/shuffling of number sets
C = [A B]; idx = randperm(numel(C)); new_matrix = C(idx(1:3));

15 years ago | 0

Answered
Normalized Cross Correlation with rotated images
Why don't you do it in the Fourier domain which can handle rotations/scaling/translations all at once!

15 years ago | 0

Answered
Save just image (and not full figure) in a loop without needing user input
h is a handle to the figure and a scalar value. What you want is for ... name = ... imwrite(squeeze(lcn(slice,:...

15 years ago | 0

| accepted

Answered
Motion Detection
Yes.

15 years ago | 0

| accepted

Answered
Want to plot iteration results
figure; hold on; while ... calculate stuff plot(stuff) drawnow; pause('if you want'); end

15 years ago | 0

Answered
Manipulating tensor products
Let me throw a vote in for Matt J's KronProd Class: <http://www.mathworks.com/matlabcentral/fileexchange/25969-efficient-obje...

15 years ago | 0

Answered
Want to plot iteration results
doc plot doc hold perhaps? What is your _actual_ question?

15 years ago | 0

Answered
Saving filtered image
doc imwrite

15 years ago | 1

Answered
plotting 3d gaussian beam
If you just want to plot it, then look at using an isosurface and a patch objects. Also look at some of the other volume visual...

15 years ago | 0

| accepted

Answered
How to creat variable number of matrixes into a loop and how to delete cells of them
First read this document: <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F> ...

15 years ago | 0

Answered
edges colour change in an image
I(edges) = 0; %? Also look at: doc imerode doc imdilate

15 years ago | 0

| accepted

Answered
I need to write a function MySolve
This should help a little while the_error > tol && iter <= maxit iter = iter+1; Do a whole bunch of other stuff t...

15 years ago | 0

Answered
How do I find non-consecutive zero entries?
And another: %Don't overwrite input because it's a built-in function! %renamed input to x output = (x==0&diff([zeros(siz...

15 years ago | 0

Answered
plot vector velocity
doc coneplot doc quiver doc stream2 A few places to look

15 years ago | 0

| accepted

Answered
What on EARTH is wrong with the Matlab string representation? This is WEIRD.
First off, it wouldn't be the underscore but the . (period) since that's how struct fields are referenced. I'm unable to repl...

15 years ago | 0

Answered
While Loops- Flaps Problem, need advice
If total >= 30 %flaps full down end Also read: doc le doc ge doc lt doc gt

15 years ago | 0

| accepted

Answered
aligning overlapping images and averaging the overlap
To start: -use CONV2 with a ones kernel to figure out how many zeros are touching.

15 years ago | 0

Answered
Comparing two matriced
The logical matric ABne = A~=B or if you need the indices [r c] = find(ABne);

15 years ago | 0

Answered
vector field on an image
I = your_image %Create a grid of the indices: [rr cc] = ndgrid(1:size(I,1),1:size(I,2)); %Add the displacements vectors to ...

15 years ago | 0

Answered
Looping question
No reason for loops! x = 1:100; %x vector func = @(x)x.^2-1; %function to apply [the_min, idx] = min(func(x)); %find the...

15 years ago | 0

| accepted

Answered
Best File Exchange ever !!!
keep <http://www.mathworks.com/matlabcentral/fileexchange/181-keep> Probably the only FEX file that I use on a daily basis...

15 years ago | 4

Answered
Best File Exchange ever !!!
John D'Errico's inpaint_nans: <http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaintnans> Its 3/n-d extensions ...

15 years ago | 4

Answered
Help vectorize my poor code or make it faster
Although I think your whole loop can be easily vectorized as Richard has alluded to, I think a simple speed up would be to run t...

15 years ago | 0

Load more