Answered
Surf error-- too many input arguments
which -all grid ?

14 years ago | 0

Answered
How do I change the colour in a region of interest of an image, leaving parts of the image unchanged, using the image processing toolbox?
There are many ways to do this type of thing and I am not completely clear so I will just give a small example: %Sample ima...

14 years ago | 0

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

14 years ago | 0

| accepted

Answered
Using pcolor to create a a color scale.
Looks like a |<http://www.mathworks.com/help/techdoc/ref/colorbar.html colorbar>| to me!

14 years ago | 0

Answered
Optimize the FOR loop
If you can guarantee that the is at least one occurence of x(:) <y (:) then this will work: x=[537 558 583 606 631 655 666 ...

14 years ago | 2

Answered
How do I change the display of my answers if condition is not met?
Why don't you use |error()| instead of |disp('...')| to actually abort the program when the error is encountered. Or, to keep...

14 years ago | 0

| accepted

Answered
With fminsearch, how can I get standard errors, significant levels and p-values of estimated parameters?
If you have the Stats Toolbox, how about just using |<http://www.mathworks.com/help/releases/R2012a/toolbox/stats/mle.html mle()...

14 years ago | 0

Answered
Error at open 163 again (trying to open a figure)
First, you're overwriting |figure|, don't know if that has anythign to with this, but it certainly isn't a good idea. Second,...

14 years ago | 0

| accepted

Answered
Reputation needed to achieve editor powers
Fangjun (on vacation) and I can also do whatever based on rep, and IA is almost there. On that note, we're all going to see a b...

14 years ago | 0

Answered
Numbers in a editbox to the workspace
Here is a small example: figure('units','norm'); hE = uicontrol('style','edit','units','norm','position',[.4 .4 .2 .2]); ...

14 years ago | 0

| accepted

Answered
for converting the same sign done by two different people in one
Of course you can. It won't be easy, and there is one exception to every rule - if it's my hand writing you don't stand a figh...

14 years ago | 0

Answered
Windows XP and Windows 7
dbstop if error Then run your script. What is M? I am willing to guess it is not a struct and thus why you are getting th...

14 years ago | 0

Answered
fsovle error 241
You need to pass the various extra arguments to |spice_fsolve_singleinput_v1|. <http://www.mathworks.com/help/releases/R2012a/t...

14 years ago | 0

| accepted

Answered
Remove UI Control edit box referenced with handles
That means that _handles.sensname(i)_ is returning a 0, the handle to the root object. It it kind of hard to tell you what is...

14 years ago | 0

Answered
vector index of consecutive gap (NaN) lengths?
And if you like Ryan's idea but don't like |bwlabel| because it's evil: A = [2 4 NaN 7 9 NaN NaN NaN 32 NaN NaN 8]; CC= bw...

14 years ago | 1

| accepted

Answered
Modifying a Class
Looks fine to me. <http://en.wikipedia.org/wiki/KISS_principle Keep it simple and stupid.>

14 years ago | 0

| accepted

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

14 years ago

Answered
Dividerand - neural network training
I am not sure I understand. You can analyze the indces just by looking at the outputs from <http://www.mathworks.com/help/rel...

14 years ago | 0

Answered
Linear fit with data uncertainty
How about the additional outputs in <http://www.mathworks.com/help/releases/R2011b/toolbox/stats/regress.html |regress|>? Or if...

14 years ago | 0

Solved


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

14 years ago

Answered
Optimization of a nested loop
Not necessarily faster, prettier, less confusing or better in any way with the exception of being on one line and containing the...

14 years ago | 0

Answered
Getting a minimum value
min(double(m))

14 years ago | 0

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

14 years ago

Answered
Piecewise over circles 3d
[x y] = meshgrid(1:20); z = nan(size(x)); %preallocate (account for parts that don't meet anything) idx = (x.^2+y.^2)<=pi^2;...

14 years ago | 0

Answered
Replacing zeros with empty values?
No. Not unless every row/column has one and you concatenate. It is possible to have empty elements in cell arrays though, co...

14 years ago | 0

| accepted

Answered
Coloring Function for mesh
Sure: L = membrane; %sample data ax = mesh(L); %mesh it! sz = size(L,1); %how big? set(ax,'cdata',bsxfun(@hypot,(1:sz)',...

14 years ago | 1

Answered
Separating a column in two others when there are empty cells
How about this hideous idea? C = {''; '4W231108' ; '4W211208' ; '4W180109' ; '4W150209' ; '4W150309' ; '4W120409'...

14 years ago | 0

| accepted

Answered
cftool error: output argument "fitobj" (and maybe others) not assigned during call to to "/Applications/MATLAB_R2010b.app/toolbox/curvefit/curvefit/fit.m>iCurveInterpolation".
This happens if you have non-unique values in your data. I think as of R2011a it can account for them..

14 years ago | 0

Answered
"Subscripted assignment dimension mismatch.' when running a linprog coding.
Huh? You could |squeeze()| it to remove the singleton dimension.

14 years ago | 0

| accepted

Load more