Answered
Set list box
n = 5; uicontrol('style','list','string',num2cell((1:n).'))

14 years ago | 1

| accepted

Answered
Efficient SORT function with random tie-breaking rule
One way: x = [1 2 2 2 3 4 4 5]; [v,idx] = sort(x); idxc = cumsum([1 logical(diff(v))]); idx = cell2mat(accumarray(idxc',...

14 years ago | 0

Answered
TimerFcn within GUI function to another GUI function
use |setappdata/getappdata| for the required handles and |timerfind| to find the appropriate timers.

14 years ago | 0

Answered
sort the rows of a matrix based on their distance from the mean
# calculate the distances as Walter did in your other thread # sort this and keep the second output (ind) [~, ind] = sort(...) ...

14 years ago | 0

| accepted

Answered
How to create a sqaure matrix from a one dimensional vector
x = 1:4; gallery('circul',x) %gallery strikes again! *More* fliplr(gallery('circul',fliplr(x))) since you want it ...

14 years ago | 3

| accepted

Answered
Using uimenu and the callback to a function
Don't use ' ' around the callback: ...'callback',@loadConfig3) *More* works for me: function ans_uimenu mh(5) =...

14 years ago | 1

| accepted

Answered
Timing in GUIde
Don't use a |while|-loop, use a |timer| doc timer it'll do everything you ask of it.

14 years ago | 0

| accepted

Answered
How to make the surface plot transparent??
Look at the _alphadata_ property in: web([docroot '/techdoc/ref/surface_props.html'])

14 years ago | 0

Answered
GUI - Is it possible to show a logo without having the end-user to have the image processing toolbox installed?
You could use |image()|. doc image You will have to generate the colormap and axes directions manually though.

14 years ago | 0

Answered
Use of Function Handle and fmincon in Embedded MATLAB
No need for evil-eval: F = @(x)x(1)^2 + x(2) - 5;

14 years ago | 1

Answered
Conversion to double from sym is not possible.
You probably need to |subs|-titute a value in for your symbolic variable. doc subs

14 years ago | 0

Answered
sum within the elements of a vector
*Edit* x = 1:5; M = bsxfun(@plus,x',x); M(1:size(M,1)+1:end) = 0;

14 years ago | 0

Answered
undefined function or method of type char
instead of 1,32 or 33,64, the comma (',') should be a colon (':'); doc colon for more info

14 years ago | 0

Answered
Canny Edge Detection - Automatic/Adaptive Thresholding
You could place a break point in the subfunction |parse_inputs()| of |edge()|. edit edge Scroll down and place breakpoin...

14 years ago | 2

Answered
how to convert .mfile to .fig file??
So you have a _*.fig_ and a _*.m_ file made in GUIDE, of the same name? You no longer have the _*.fig_ file and you would like ...

14 years ago | 0

Answered
3D spatial transformation
doc maketform %and friends

14 years ago | 0

Answered
Copyfile without overwriting
You could use |fwrite|, or |fprintf| to write to the end of the file, |fgetl| would also be your friend.

14 years ago | 0

Answered
matlab pass recent loaded value to next gui
_leaf_ is destroyed at the end of the function. To pass it to the next function, see the FAQ: <http://matlab.wikia.com/wiki/...

14 years ago | 0

| accepted

Answered
Convert cell to matrix with mixed data types
Do the sizes all line up? You could first run your cell through a for-loop that identifies, '#N/A's and then replaces them. ...

14 years ago | 0

Answered
Please help if you can
doc fprintf

14 years ago | 0

Answered
How to do extrapolation
<http://mrkwr.wordpress.com/2006/11/08/mark-twain-on-the-perils-of-extrapolation/ Extrapolation>

14 years ago | 1

Answered
Dividing images into blocks
perhaps |mat2cell()|, |blockproc()| or a double |for|-loop.

14 years ago | 1

Answered
function min
<http://www.mathworks.com/company/jobs/opportunities/>

14 years ago | 4

Answered
how extract 1/8 of volume image to show inner part of structure
doc slice And perhaps Patrick's answer to my similar question: <http://www.mathworks.com/matlabcentral/answers/10446-usi...

14 years ago | 0

Answered
Quickest way to get points in a matrix given two 1-D arrays?
Apart = diag(A(B(:),C(:)))

14 years ago | 0

Answered
fmincon nonlinear constraints
If you concatenate them, C could contain both constraint matrices?

14 years ago | 0

Answered
Animation in matlab
Yes. Create a bunch of lines using |line()|. Then modify their _xdata_ and _ydata_ properties to reflect new positions. You c...

14 years ago | 0

| accepted

Answered
More on the menu fontsize
You misinterpretted by intent. It IS possible to do this, just not with the stock |menu()| function. You'll have to write your...

14 years ago | 0

| accepted

Answered
why why why why why ..........................................
_The bald and not excessively bald and not excessively smart hamster obeyed a terrified and not excessively terrified hamster._ ...

14 years ago | 0

Answered
Converting a .mat file to .xls
doc importdata doc xlswrite Some friends for your journey...

14 years ago | 0

Load more