Answered
bwdist is computing image complement
It is probably not just the complement as you suspect. You're probably viewing it on the range [0 1] so values greater than or ...

15 years ago | 0

| accepted

Answered
Quiver scale variables differently?
Two ideas: * Use the scale input to quiver doc quiver * Normalize the arrows to be the exact same range: u2 = u2...

15 years ago | 1

Answered
matrix addition is problemtic in finding similaity between projects
Put a break point on line 36 and investigate the sizes of the matrices.

15 years ago | 0

Answered
displacement vector
doc normxcorr2

15 years ago | 0

Answered
Best way(s) to master MATLAB?
ending = 'Answers/CSSM posts'; * ['Reading ' ending] * ['trying/understanding others'' replies on ' ending] * ['Replying ...

15 years ago | 1

Answered
Time-limiting code
This topic was covered on CSSM: <http://www.mathworks.com/matlabcentral/newsreader/view_thread/260998>

15 years ago | 2

Answered
Point in sagittal plane
Of course it's in a sagittal plane. It's also in a transverse and coronal plane.

15 years ago | 0

Answered
compare two matrices
result = A==B;

15 years ago | 3

| accepted

Answered
Fast way to delete the last n rows of a matrix
tst = tst(1:end-lastn,:); %glass half full No guarantees it'll be faster. The typical goal here is just minimize the number...

15 years ago | 0

| accepted

Answered
How to organize similarly named files
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

15 years ago | 1

| accepted

Answered
plotting matrix of number as image
Like this? <http://www.mathworks.com/matlabcentral/fileexchange/28748-displaymatrix>

15 years ago | 0

| accepted

Answered
Problem with loop: Round 1
You need a '/' after target. dest_dir = [pwd '/Target/'];

15 years ago | 1

| accepted

Answered
Simple task on image
doc imclearborder

15 years ago | 2

| accepted

Answered
Curve Fitting to Multiple Data Sets
Take the mean of the matrix across columns and fit the curve to it. data = mean(data_matrix,2); %fit stuff to data.

15 years ago | 0

| accepted

Answered
finding values common to 3 different single-column matrices
C(ismember(C,A(ismember(A,B))))

15 years ago | 0

Answered
Organizing Images based upon their size
%Assuming these are correct, Make sure dest_dir exists source_dir = 'C:\Users\xuf\Desktop\LineScan-2010_12_08-005\'; ...

15 years ago | 1

| accepted

Answered
Discarding certain centroids found using regionprops
What do you mean it computes the centroid parts in a black area? There's no way that it does that. It's possible the centroi...

15 years ago | 0

| accepted

Answered
reshape,ascii to binary
y = reshape(x',1,numel(x)) transpose first

15 years ago | 0

| accepted

Answered
'for loop' trouble
[junk,idx] = ismember(A,B) idx is the location you're looking for. (and to fix your for-loop) for ii = length(A):-1:1 ...

15 years ago | 0

| accepted

Answered
MATLAB coding problem with least squares surface fit
[EDIT: Thu May 19 18:44:56 UTC 2011 - Merged Comments - MKF] Should B be a column vector? Either: B = [S7;S8;S3]; or B...

15 years ago | 0

| accepted

Answered
Running two scripts containing different functions consecutively
Of course! stuff = magic(4); %example stuff [x y] = function1(stuff); %call first function [z] = function2(x,y); %then ...

15 years ago | 0

| accepted

Answered
Threading part of a function over each element in a cell array
The for-loop is probably the fastest way. You could also do: newarray = cellfun(@(C)myfun(n,C(1),C(2)),mycellarray) But...

15 years ago | 0

| accepted

Answered
Position Of pixel
Igray(Ibinary); %extract gray values of true binary values true_locations = find(Ibinary); %indices of binary values You'l...

15 years ago | 0

| accepted

Answered
3D binary matrix
doc implay doc slice doc isosurface %(isovalue is 0 for binary!) Three common ways

15 years ago | 0

Answered
Creating RGB images from .Mat arrays with imaginary entries
You could extract just the real components using: doc real or just the imaginary ones using doc imag E.g. ...

15 years ago | 0

Answered
Image Processing: DeInterleaving, is it possible?
Copied from Andrew with modifications: function [A, B] = deinterleave(file_name) I = imread(file_name); %don't call a v...

15 years ago | 2

Answered
Want to find and use a corresponding y-value for a given x-value
%Sample x/y x = linspace(0,100,572); y = 2.*x.^2-31*x; %Index of x closest to 50 and corresponding y [junk, idx50] = min(ab...

15 years ago | 0

| accepted

Answered
Calculating mean of matrix elements
x = magic(300); %example matrix x2 = conv2(x,ones(3)/9,'valid'); %windowed mean of 3x3 grid x(2:end-1,2:end-1) = x2; %insert...

15 years ago | 0

Answered
determining whether a number lies in any of the intervals of a 2 column matrix
I have an elementary for-loop running twice as fast as the arrayfun method. idx = false(size(A)); for ii = 1:length(A) ...

15 years ago | 0

| accepted

Answered
How can I get all value after convert n matrix
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F>

15 years ago | 0

Load more