Answered
How do I get help on homework questions on MATLAB Answers?
*Do not copy and paste the assignment.* Summarize it in your own words tuned to your specific question.

15 years ago | 8

Answered
Creating large gui, setting callbacks
3 Ideas # In the guide editor, go into each edit box that doesn't have a call back and delete the call back function in the i...

15 years ago | 0

Answered
Speeding up a code involving nested for loops
The idea is to minimize the number of computations inside the FOR-loop. In this case, |conj(PSI_ab(:))| doesn't change and thus...

15 years ago | 1

Answered
Out of memory using mrdivide
Buy more RAM and upgrade to a 64bit OS.

15 years ago | 0

Answered
Calculating volume under a 3-D set of non uniform data points
<http://www.mathworks.com/matlabcentral/fileexchange/24593-volume-enclosed-by-a-triangulated-surface> Perhaps.

15 years ago | 0

Answered
how to create a second column of static values in a matrix
B = [num2cell(A),repmat({'test'},size(A))]

15 years ago | 0

| accepted

Answered
whats this line do?
* It defines y as x padded with 20000 columns on both sides * It takes the DFT of the real part of the second row of y, shifts ...

15 years ago | 1

| accepted

Answered
CSV vs MAT files
* If you're going to be using it outside of MATLAB -> CSV * If you're only using it within MATLAB and you're motivating to writ...

15 years ago | 0

Answered
regarding bwconncomp()
CC = bwconncomp(Ibw); %Ibw is your binary image stats = regionprops(CC,'pixellist'); stats(1).PixelList %will contain th...

15 years ago | 0

| accepted

Answered
doing a 'strfind' with apostrophe in the string?
Use double apostrophes everywhere you have an apostrophe in your string, e.g: A = findstr('''', '''REACQ''=''Y''')

15 years ago | 0

| accepted

Answered
??? Index exceeds matrix dimensions error in ploting data from a vector
The problem is that you're swapping y,x in your for-loops for blackcount. You could of course vectorize the whole thing wit...

15 years ago | 0

Answered
How to access multiple images in a single code ?
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> FAQ 4.12

15 years ago | 1

| accepted

Answered
Splash water detection at swimming pool using thermal image
bw2 = ~any(im1(:,:,[1 2]),3); %your first set of for-loops, it'll be the same for the second where your define temp. Instea...

15 years ago | 0

Answered
Hump-day puzzler - Unknown Function
Tough one! In lieu of a real way to name a function/function handle: 0;']) F = @(x)HDC525(x); and: function HDC525(x) %S...

15 years ago | 1

Answered
y(0)=0
MATLAB indexing starts at 1. y(1) = 0;

15 years ago | 1

| accepted

Answered
select columns from one matrix according to values in a second matrix
doc isnan Might be of some use.

15 years ago | 0

Answered
tridiagonal matrix
TD = full(gallery('tridiag',100,0.99 , -2 , 2.01)) EDIT Per Comment: y = TD\B;

15 years ago | 0

| accepted

Answered
Using fzero
doc function_handle instead of inline.

15 years ago | 0

| accepted

Answered
sliding window
Imean_window = conv2(double(I),ones(3)/9,'valid');

15 years ago | 0

Answered
segmentation via chan-vese algorithm
Assuming the camera is fixed, you should be able to subtract two adjacent frames and anything that has changed between them must...

15 years ago | 0

| accepted

Answered
finding NON in matrix
A(isnan(A)) = 0;

15 years ago | 0

Answered
Plotting maximum intensity value
[the_mx, idx] = max(X(:)) [row_mx, col_mx] = ind2sub(size(X),idx);

15 years ago | 0

| accepted

Answered
Contour plot
Multiple calls to |line|. You'll have to write some type of wrapper function but it should be doable.

15 years ago | 0

| accepted

Answered
Subplot in GUI
No. Use two axes and write to them each as you would with a subplot. Basically make your own subplots with a number of axes.

15 years ago | 0

Answered
Contour plot
If instead of a contour plot you could deal with an edge, this might work: Lrgb = label2rgb(bwperim(kron(a,ones(10)))); %expa...

15 years ago | 0

Answered
Using the misdata function on two-dimensional arrays
I've never heard of the |misdata| function. What are the missing data points right now? Are they NaNs? If they are, try John...

15 years ago | 0

Answered
Add radio buttons in figure
Or you could look for code on the FEX that does it already and then use the relevant portions. A hint: my |IMCENSOR| function u...

15 years ago | 0

Answered
Image Segmentation built into MATLAB?!
doc gt doc lt doc ge doc le doc eq doc im2bw %Image Processing Toolbox (and doc graythresh) doc edge %IPT doc imerode %IPT doc...

15 years ago | 0

Answered
Where can I upload images and files for use on MATLAB Answers?
Upload house <http://www.uploadhouse.com> * Makes it very easy to give a link directly to an image and to embed an image in an...

15 years ago | 2

Answered
How to find variance,entropy,average gradient of an image?
doc mean doc var doc gradient doc entropy doc double %convert from uint8

15 years ago | 0

Load more