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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 2

| akzeptiert

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 3

Beantwortet
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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 2

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 0

| akzeptiert

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

etwa 13 Jahre vor | 1

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 2

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 2

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

Mehr laden