Answered
fmincon - matrix A depends on x
Hi Chamun, Since A depends on the current value of x, these will be non-linear constraints. You will have to use the _nonlco...

13 years ago | 0

| accepted

Answered
Parallel computing in matlab
Use a |parfor| loop on the outermost loop. <http://www.mathworks.com/help/releases/R2013b/distcomp/parfor.html>

13 years ago | 0

| accepted

Answered
Save axes plot as '.fig' in a GUI
You can't directly save just the axes. Instead, use <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig export...

13 years ago | 1

Answered
How to create uicontrols with callbacks in one m-file and call these callbacks in another m-files?
There's a bit of a learning curve but if your application is going to be complex or you plan on making other applications in the...

13 years ago | 0

Answered
Zoom in Zoom out axes with button function
I would just add the predefined ZOOM buttons to the toolbar of the figure. There's no reason to reinvent the wheel. In GUIDE...

13 years ago | 0

Answered
axesm error line 139
Sounds like a path issue. restoredefaultpath; rehash toolboxcache; Does it work now? If so, run: |savepath|.

13 years ago | 0

Answered
inserting colorbar in surf plots.
Use the |colormap| function to set the figure's colormap to the one of your choice. *More* per clarification: %Emula...

13 years ago | 0

| accepted

Answered
How do you subtract/add with roll under/over
x = uint8(1); y = uint8(2); z = max(double(x)-double(y),0)+uint8(x < y).*255

13 years ago | 0

Answered
How to disable beep (beep off does not work)?
You can change the the error sound file to something that does not have any sounds. This way when anything that emits a beep ...

13 years ago | 2

| accepted

Answered
Optimization of FIT function in a FOR loop
A few questions and thoughts: * What are you actually fitting and how big are your images? * Also, have you tried LSQCURVE...

13 years ago | 1

Answered
Can this function work any faster?
Another husky! You could avoid the |max| operation here as well: [L posP]= max(find(k==-1)-P); Instead: find(k==...

13 years ago | 1

| accepted

Answered
Using ndgrid in arbitrary dimensions
There's a fun exercise in crashing my computer. Don't use a large b ;) b = magic(3); %example bc = num2cell(b,1); %cells ...

13 years ago | 3

Answered
How can I determine the distance of two points, if the point's coord are in other vectors?
If you have the Statistics Toolbox doc pdist Else: doc hypot

13 years ago | 0

| accepted

Answered
How do tell Matlab to multiply a single array with one column of a matrix?
Not sure what you want, but it sounds like you'll either want element by element division, i.e: B(n)./A(n,n) Or |bsxfun|...

13 years ago | 2

Answered
Cannot make a simple integral on matlab
You need to convert the doubles to syms: Fm=1/(2*pi)*(int(sym('220*2^0.5'),0,pi)+int(sym('220*2^0.5'),pi,2*pi))

13 years ago | 1

Answered
finding circles or eyes fro the image
How about: doc imfindcircles And to facilitate it: <http://www.mathworks.com/matlabcentral/fileexchange/34365-findcir...

13 years ago | 0

Answered
How can I plot a vectorial field by arrows?
doc quiver doc quiver3 doc quiverm doc coneplot One of the above is likely what you're looking for.

13 years ago | 1

Answered
VideoWriter clipping my axes
I would guess |getframe| ios the culprit. Try cycling through the renderers - I would start with _'Painters'_ set(gcf,'ren...

13 years ago | 0

Answered
Utilizing Multiple GPUs in MATLAB
It depends. Do the first and second matrices (who live on different GPUs) need to interact (e.g. multiply together)? Or do you...

13 years ago | 1

Answered
output of surface fit function to workspace
Two ways: Method1, interactively: Go to the "fit" tab and "Save to workspace". This will save the _fittedmodel_ and you c...

13 years ago | 0

| accepted

Answered
Activate toggle button from pushbutton matlab GUI
Set its _'Value'_ to _true_ and call its _'Callback'_ to the toggle button's callback: function exampleTGL %SCd ...

13 years ago | 0

| accepted

Answered
How to put root directory in dicomwrite?
<http://www.mathworks.com/help/releases/R2013a/matlab/import_export/process-a-sequence-of-files.html How to preocess a sequence ...

13 years ago | 0

| accepted

Answered
How does the way MATLAB passes parameters to function - by values vs by objects - affect the perfomance?
My _guess_ is that because you are passing in two variables that are not classes, the JIT is better able to optimize it. It als...

13 years ago | 0

Answered
Brainstorm: Why would my function stop?
A |pause()|, |keyboard|, |input| or |waitforbuttonpress| command?

13 years ago | 2

| accepted

Answered
Issue with older code in which arrays are misrepresented as sparse
# No. Are the data *identical* and code paths the same? # What functions are doing this? (I might recommend contacting suppor...

13 years ago | 0

Answered
Can arrayfun take multi-dimensional arrays as individual arguments?
Just use a |for|-loop! |cell2mat/mat2cell/arrayfun| are all slow and confusing.

13 years ago | 2

| accepted

Answered
plot circles in R2013a
This is a MuPAD command. You need to open a MuPAD notebook and then enter this command. This can be done by running the follow...

13 years ago | 0

Answered
How can I keep figure boxes from popping up while running script.
Instead of making a new figure window on each loop iteration, use |clf| to clear the current one and reuse it!

13 years ago | 0

Answered
Assign a custom shortcut to keyboard-shortcut
You can get keyboard mnemonics by holding the *[alt]* key (Windows, not sure about others) and either releasing it or waiting a ...

13 years ago | 0

| accepted

Load more