Answered
Computational Cost of dsearchn
Are you looking for number of flops? I don't think you're going to have much luck finding this. |dsearchn| relies on mex and...

14 years ago | 0

Answered
Correlation
Yes. It does. A good example: corrcoef(1:10,10:-1:1) *More:* |corrcoef| when called with two scalars or vectors p...

14 years ago | 0

Answered
Do you think this behaviour of built-in functions error() and warning() is odd
It means exactly what it says: warning('msg:id', '%d %d', 1, 2) Use 1,2 as scalars. I do see how this differs from |...

14 years ago | 0

| accepted

Answered
continuing a program after red error messages
Use a |try/catch| block. doc try

14 years ago | 1

| accepted

Answered
How to rename filenames quickly?
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How to process a sequence of files?>

14 years ago | 0

Answered
imsubtract(data(:,:,1), rgb2gray(data));
data(:,:,1) specifies the first three dimensional slice of data. In an RGB image, this would be the R slice (plane).

14 years ago | 0

| accepted

Answered
Image as background
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples/content/GUI_40.m FEX:Matt's GUI40>

14 years ago | 1

Answered
random fun.
round(rand+2);

14 years ago | 2

| accepted

Answered
Best reason to replace structures with classes
Using OOP can really help "idiot-proof" your code if well written. That is, you can make sure conditions are met before setting...

14 years ago | 2

Answered
What does '@' mean in a matlab expression?
It means your are referencing a function handle or creating an anonymous function. doc function_handle and <http://ww...

14 years ago | 2

| accepted

Answered
Listbox... How to make matches of two, is it possible???
You could possibly add a post-set listener to the ListBoxTop property that updates the other one whenever the first one is chang...

14 years ago | 0

Answered
Please help me solve gaussian elimination
doc rref

14 years ago | 0

Answered
extrapolation of discrete data points
Fun reading: <http://mrkwr.wordpress.com/2006/11/08/mark-twain-on-the-perils-of-extrapolation/ Mark Twain on Extrapolation>

14 years ago | 0

Answered
MATLAB GUI to webpage
<http://www.mathworks.com/products/netbuilder/>

14 years ago | 0

Answered
can this be done without a for loop?
So something like: A = sort(magic(5),2); %determinant sample data thresh = 22; %greater than this idx = A>thresh; %index ...

14 years ago | 0

Answered
scatter too slow
Are you sure a 2-dimensional histogram viewed as a |mesh| or |surf| wouldn't better suit your needs? I have a lot of trouble be...

14 years ago | 0

Answered
How to generate multiple Vectors with random variables but sum 1
Easiest way is to normalize by the sum: A = rand(1,10); B=A./sum(A); sum(B) However, there are some things that make t...

14 years ago | 1

Answered
Need vectorized strfind command
Convert your 146x4 char array to a 146x1 cell array and then use |strfind|: A = repmat('friday',146,1); B = num2cell(A,2);...

14 years ago | 1

| accepted

Answered
Horizontal an vertical projection
If just connectvity is your constraint, I would use |bwconncomp| and maybe |regionprops|. If "CLOSE" needs to be defined, then ...

14 years ago | 0

Answered
work around for sparse matrices in 3D
<http://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sparse-arrays FEX:ndSparse> This is well rated.

14 years ago | 1

Answered
what are your opinions to modify this code for improvement the result?
I would rename your variable _edge_ to a name that doesn't overwrite the IPT stock function |edge()|.

14 years ago | 0

Answered
why can not read images with structures from my folder with different resolution ??
dbstop if error And inspect the variables at the line in question (line 26)

14 years ago | 0

Answered
legend pie chart
Like this? x=[65 65 67 68 68 68 68]; y=unique(x); counts=histc(x,y); pie(counts,cellstr(char((y')))') Note transpose ...

14 years ago | 0

| accepted

Answered
Matrices like member of matrices
If the matrices are different sizes/classes or you want a simply way to index you could use a cell array: %four different t...

14 years ago | 0

Answered
Seeking help with neural network problem - willing to pay 50-100 euro
<http://www.mathworks.com/services/consulting/ Mathworks Consulting>

14 years ago | 0

Answered
ignore lines in a legend
Yes you can do this using the handles explictly. Here are two examples of different use cases: *One call to plot:* figu...

14 years ago | 8

| accepted

Answered
Superimposing graphs with different axis
You could try setting the |axes| _'color'_ to _'none'_ so that when you superimpose them they are transparent. I would guess th...

14 years ago | 0

Answered
Name Conflict Warning
If this isn't causing any conflicts, find your _startup.m_ file and add a |clc;| to it.

14 years ago | 0

Answered
I'm looking to eliminate the following for loop:
%Data: mp=[0.1;0.2;0.3]; ijk=[1,2,1]; rnsz = [4 1]; %the size you want rn to be: %Engine: rn = accumarray(ijk...

14 years ago | 0

Answered
Find what toolboxes a script uses
<http://matlab.wikia.com/wiki/FAQ#What_toolboxes_or_other_m-files_does_my_m-file_use.3F Dependency Report>

14 years ago | 1

| accepted

Load more