Answered
How to fill empty parts of a projected image?
<http://www.mathworks.com/matlabcentral/newsreader/view_thread/256591#785780 CSSM:StevenLord_on_the_concave_hull> First, read t...

15 years ago | 0

Answered
Image registration
<http://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation FEX:dftreg...

15 years ago | 0

Answered
Loop to spit out consecutive values into excel
The easiest way would just to keep a counter count = 1; for ii = 1:10; %generate stuff xlswrite(stuff,sprintf('A...

15 years ago | 0

Answered
What does Matlab do with blank values?
[] is the empty set. 3*[] []*[] []+[2] etc. to see how it behaves. doc isempty will be your friend.

15 years ago | 0

| accepted

Answered
ind2gray
It really helps if you give us the FULL error message. what happens if you type: isempty(map) ?

15 years ago | 0

| accepted

Answered
question on int and constant of integration
*EDIT* Read Roger's reply here: <http://www.mathworks.com/matlabcentral/newsreader/view_thread/297561#800045 CSSM>

15 years ago | 0

| accepted

Answered
combining two images together
Side by side or superimposed? I = double(imread('cameraman.tif')); figure; imshow(I+I.',[]) %superimposed figure; imshow(...

15 years ago | 1

Answered
Grouping the data based on distance values
|histc|? doc histc doc accumarray maybe? We'll need more details if you want a more precise answer.

15 years ago | 0

Answered
How do I superimpose a pdf over a histogram?
It's plotting both of them; it's just the pdf is on the range of 0-1 (y values) and the histogram is on the range of 0-7000. No...

15 years ago | 0

Answered
how to delete a digit from an array ???
B = A(~A & F(i,j)~=255)

15 years ago | 2

Answered
faster way to generate submatrices?
doc convn 3-dimensional convolution specifically: m = neighborhood_window_size; B = convn(A,ones(m,m,m),'valid...

15 years ago | 0

Answered
Warning singular matrix.
You could check if any of the result |isinf| if any(isinf(result(:))) %is it singular? x = this_instead; %yeah, doh! ...

15 years ago | 0

Answered
Importing Data From Excel
Is the data a char in the excel file? You could always brute force it: is_str_a_num = str2double(char_num); %is it a num...

15 years ago | 0

Answered
3D plotting only with double data?!
I would recommend just using |double()|. |im2double()| normalizes the data to fall between 0 and 1. The fact that |surf| and |...

15 years ago | 0

Answered
How to normalise Image intensity?
Inormalized = double(I)./double(max(I(:))); Doing this to both will give them both the same maximum intensity (1).

15 years ago | 1

Answered
Inserting a cell into a matrix
This kind of cell? imtool(padarray(imread('cell.tif'),[20 20])) %view cell embedded with 20 rows and columns on each sid...

15 years ago | 0

Answered
Restrict access to Matlab code
Convert it to pcode (protected code) doc pcode

15 years ago | 0

Answered
Images when publish
PDF the HTML. Else you have to send the WHOLE HTML folder which contains the images. This isn't really related to MATLAB as ...

15 years ago | 0

Answered
Funny situations while helping others on MATLAB Answers
This hasn't happened in a while; but I like when someone doesn't catch onto a strung out variable name: X = your_matrix; %...

15 years ago | 4

Answered
Funny situations while helping others on MATLAB Answers
Paulo, I liked one of your answers to a question; something along the lines of: "How do I write 34.999 to a string?" You repl...

15 years ago | 1

Answered
create an array
szs = [20 20 30]; %sizes vals = [1 0 2]; %values C = cellfun(@(c,v)ones(c)*v,num2cell(szs),num2cell(vals),'uni',false); M =...

15 years ago | 0

Answered
Combining images that have a reference on them
* Find the point of intersection * Rotate if necessary |imrotate| * Put them together. This thread might be good for that: <...

15 years ago | 1

| accepted

Answered
matching digits
A=1234; B=1248; C =1238; Astr = num2str(A); %you'll need this one 3x so convert it once. idxstop = find(any(bsxfun(@ne,...

15 years ago | 0

| accepted

Answered
Step by step getting BSD license
You just fill out the name and date and check off that you want. Later this afternoon when the admin accepts your file the BSD ...

15 years ago | 1

| accepted

Answered
Biuld Min Index Array from Two dimensional Array
[junk, index] = min(your_matrix); %will get you the first index To get all minimum indices: A = magic(4); %sample A(7) = ...

15 years ago | 0

Answered
How can I access a submatrix as an array inline?
The problem is that B(:) is not the same shape as B which is equal to A(..). To fix: A = imread('peppers.png'); B=A(50:...

15 years ago | 0

| accepted

Answered
Display real time clock in Gui
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples GUI 17>

15 years ago | 0

Answered
how to find argument or angle of a complex number in matlab?
That error you're seeing has to do with the syntax or variable you're referencing when you call |angle|. Did you overwrite angl...

15 years ago | 2

| accepted

Answered
MATLAB Central Answers website problem?
Arghh. < rant> Why do we have to click though our answers in groups of 50. It was excellent before, you could see all o...

15 years ago | 1

Answered
Best way to filter a Matrix
Do you have the curve fitting toolbox? If so, look at: doc smooth specifically the 'rlowess' option. Are all three s...

15 years ago | 0

Load more