Respondida
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...

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

Respondida
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...

casi 13 años hace | 1

Respondida
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...

casi 13 años hace | 0

Respondida
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...

casi 13 años hace | 0

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

casi 13 años hace | 0

Respondida
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...

casi 13 años hace | 0

| aceptada

Respondida
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

casi 13 años hace | 0

Respondida
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 ...

casi 13 años hace | 2

| aceptada

Respondida
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...

casi 13 años hace | 1

Respondida
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==...

casi 13 años hace | 1

| aceptada

Respondida
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 ...

casi 13 años hace | 3

Respondida
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

casi 13 años hace | 0

| aceptada

Respondida
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|...

casi 13 años hace | 2

Respondida
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))

casi 13 años hace | 1

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

casi 13 años hace | 0

Respondida
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.

casi 13 años hace | 1

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

casi 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 1

Respondida
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...

alrededor de 13 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 13 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 13 años hace | 0

| aceptada

Respondida
i want to resize a binary image which is a result of some prior operations
doc imresize ?

alrededor de 13 años hace | 1

Respondida
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...

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 2

| aceptada

Respondida
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...

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 2

| aceptada

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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!

alrededor de 13 años hace | 0

Respondida
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 ...

alrededor de 13 años hace | 0

| aceptada

Cargar más