Answered
Tricky UITable question implementation
You could create a whole bunch of edit boxes stacked in that shape...

14 years ago | 0

Answered
How does this vector expanding work?
Think about it this way: x = [1 2;3 4]; to index the first row of this, you would use: x(1,:) If you wanted to i...

14 years ago | 2

| accepted

Answered
3D point clouds non-rigid registration over lines and markers
I read a paper on an algorithm for this. The authors put a bunch of copper particles in a medium and took a CT scan of it - ess...

14 years ago | 0

Answered
Matlab Figures into a Powerpoint Presentation
The only option (I'm aware of) for what you're describing is if you're on a Window's system and motivated. You can save the f...

14 years ago | 0

Answered
interpolation of a binary map
You have yourself what is not necessarily an easy problem. If the contour was guaranteed to be convex it would be greatly simpl...

14 years ago | 0

Answered
Can I find the intersection points of a line and a box?
I am sure a tool here <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=intersect+polygon FEX:query...

14 years ago | 2

| accepted

Answered
Is there any other alternative fuction that I can use instead of fminunc?.
|fmincon|'s _Interior-Point_ algorithm can recover from inf and nan output. doc fmincon

14 years ago | 0

Answered
3d plot of an image
<http://www.mathworks.com/matlabcentral/fileexchange/764 FEX:sliceomatic>

14 years ago | 0

Answered
meshCanopy/File Exchange - output in subplot
Comment out line 86 where it generates a new figure. Line86 -> %figure This will make it plot in the current axes such a...

14 years ago | 0

| accepted

Answered
how can we chose the intial point in fmincon optimization
From the doc for |fmincon| x = fmincon(fun,x0,A,b) And for more info: doc fmincon

14 years ago | 0

Answered
How to add triangles in colorbar
Here is a sample class that does this. Basically it wraps around colorbar giving you a colorbar handle with a few extra options...

14 years ago | 2

Answered
gui wait and gui function output
Are you looking for |uiwait|, or |waitfor|? doc waitfor doc uiwait

14 years ago | 1

| accepted

Answered
same values using randi setting seed as default
See |randperm| if you do not want duplicate values: randperm(10,4)

14 years ago | 1

| accepted

Answered
Anyone have experience with MATLAB Associate Exam?
Haven't taken it, but if I was to, here's how I would prepare: * Play CODY * Answer HG questions here (since CODY doesn't pr...

14 years ago | 1

| accepted

Answered
convolution of Template with original image
|doc conv2|

14 years ago | 0

| accepted

Answered
find if a column vector contains at least element 1
tf = any(A(:)==1)

14 years ago | 0

| accepted

Answered
Genetic Algorithm never runs past 15 iterations
[x,fval,exitflag] = ga(fitnessfcn,nvars,...) What's the _exitflag_? doc ga to have _exitflag_ explained.

14 years ago | 0

Answered
Share your favorite snippet or utility
* |gohome| %Go home cd('H:\Documents\MATLAB'); * |fgcf| figure(gcf); I used this through grad school since I w...

14 years ago | 1

Answered
Syntax bug R2011a: x ==y
It is seeing _==0_ as a string and x as a function. I.e. equivalent to: x '==0'; This is not a bug. From the doc: _...

14 years ago | 4

| accepted

Answered
Vectorizing a simple accumulation?
matrixData = [1.3; 0; 0; 0; 4.2; 0; 0; 1.5; 0; 0; 0; 0]; idxk = find(matrixData); idxr = cumsum(logical(matrixData)); matri...

14 years ago | 2

| accepted

Answered
finding a minimum from multiple matricies
first=[2 3 4]; second=[4 5 2] val = min(first,second); idx = (second==val)+1

14 years ago | 0

Answered
How to turn off cell mode in Matlab editor in 2012b?
Kevin, you can go to "Preferences" -> "Colors" -> "Programming Tools" and turn off "Highlight Sections". This should essentiall...

14 years ago | 8

Answered
Inability to clear object definition - nonfunctional "clear classes"
Your hunch is correct! |clear()| does not destroy the object, it only clears the handle to the object. This is the exact sam...

14 years ago | 0

| accepted

Answered
unable to establish database connection
Answered in comment.

14 years ago | 0

Answered
MEX MySQL Database Connector on ubuntu x86_64 - libmysql.so.16: cannot open shared object file
Antonio wrote in comment: _I got it working. It was simpler than I thought. I just typed on the terminal ...

14 years ago | 0

| accepted

Answered
How to find the top 10% value of the matrix?
x = the_matrix; [~,idx] = sort(x(:)); y = x(idx(1:10));

14 years ago | 0

| accepted

Answered
calculate distances between the rows of a matrix through an iterative process
Build an index vector of rows to keep when doing the comparison: pseudocode row_of_interest = 10; %initial row of interest...

14 years ago | 0

Answered
How can I extract random data from a matrix?
doc randperm

14 years ago | 0

Answered
How to plot a variable against two other dependent variables
[xx yy] = meshgrid(x,y); Z = f(xx,yy); mesh(xx,yy,Z) or surf(xx,yy,Z);

14 years ago | 0

Load more