Answered
Can we use parfor inside a for loop?
Sure! matlabpool open 2 for ii = 1:3 parfor jj = 1:3 disp([ jj ii]) end end matlabpool close

14 years ago | 3

Answered
Indexing into a n-by-m matrix using values from a n-by-1 matrix.
Okay, I'm not totally clear and your |for|-loop does not do what your problem describes. We have an nxm matrix, x, for simpli...

14 years ago | 0

| accepted

Answered
how to take the average of a matrix of any size
mean(X(:)) or for speed: N = numel(X); sum(reshape(X,N,1))/N; or for fun: eval([repmat('mean(',1,ndims(X)...

14 years ago | 1

Answered
When shall I contact MathWorks' Technical Support and how?
*Technical Support* * Crash of any kind * Segmentation Violations * Unable to open MATLAB * Java Exceptions (a command win...

14 years ago | 3

Answered
Plotting 4dimentional data error
))+(0.0481*(Y*Z)*14*X); ))+(0.0481*(Y.*Z)*14*X); Note difference: doc vectorize to avoid these errors in the futu...

14 years ago | 0

Answered
fprintf repeat
fprintf('My results are %.5f and %.5f', f(x)./[1, 2]) Hey, it's not a better solution but it meets your requirements.

14 years ago | 1

| accepted

Answered
Have a function and want to load mat file one time
In newer versions, you could use the |matfile| class. Then you should be able to load only the parts you need when you need the...

14 years ago | 1

| accepted

Answered
creating a function to solve non linear equations using simple iteration method
doc fsolve If you have the Optimization Toolbox.

14 years ago | 0

Answered
Matlab 2012: bug in 2012 implementation of Max() !???
This is because you have defined a variable by the name _max_: whos max and to fix it: clear max and then renam...

14 years ago | 4

Answered
roipoly imshow - big images
* <http://blogs.mathworks.com/steve/2011/08/05/dealing-with-really-big-images-viewing/> * <http://blogs.mathworks.com/steve/201...

14 years ago | 0

Answered
need help bringing images into matlab
imshow(your_white_image,[]); %show image over whole range When you visualize single and double precision images the default...

14 years ago | 0

Answered
Decompilation of an .exe file(built by Matlab)
You can also hide your code as *.p files. It sounds like this approach might better suit you. doc pcode

14 years ago | 0

Answered
Several Guis Sharing information
0 is the root matlab handle. Thus you are setting a field _'R'_ to this MATLAB's instance that can be retrieved from anything i...

14 years ago | 0

| accepted

Answered
problems deploying a GUI to windows
* Are you using a supported compiler? <http://www.mathworks.com/support/compilers/R2010b/ R2012b Supported compilers> * Use: ...

14 years ago | 0

| accepted

Answered
Converting a real number to scientific format
doc fprintf I don't really see any use for |mod|.

14 years ago | 0

Answered
Converting from Pixels to mm
doc meshgrid to generate _xdata_ and _ydata_ that can correspond to any unit you like.

14 years ago | 0

| accepted

Answered
how to superimpose a picture on an other pic in a same fig?
<http://www.mathworks.com/help/releases/R2012a/toolbox/images/ref/imfuse.html R2012a:doc imfuse> awesomeness

14 years ago | 0

Answered
Reverse the X and Y axis values in a 3D plot
doc flipud doc fliplr flip the data using one of the above. maybe: %Get the current axes data, flip it and set it...

14 years ago | 0

Answered
Error on the slope when using a least squares fit
If you have the Statistics Toolbox: doc regress And if you have the Statistics Toolbox with R2012a: <http://www.mathw...

14 years ago | 0

Answered
Check if requested output is ~
No. I would recommend having your function accept an additional input argument that tells you which outputs are filled. ...

14 years ago | 0

Answered
setting handles for an array of pushbuttons (i.e. pushbutton(i))
It doesn't work because _handles.pushbutton(i)_ does not evaluate to _handles.pushbutton1_ (when i is one). To work around this...

14 years ago | 1

| accepted

Answered
fill plot and transparency < 1 removes lines of x-axis and y-axis. Why?
<http://www.mathworks.com/support/solutions/en/data/1-5X41G7/index.html>

14 years ago | 1

Answered
using self created class in gui
Well, what do you want to name it? And what do you want to do with it after? You could have an edit box in the gui qwhere the ...

14 years ago | 0

Answered
Create a vector with block elements of the same value
K=3; N=3; v = reshape(repmat(1:K,N,1),1,N*K)

14 years ago | 0

| accepted

Answered
Script issue between two different versions
It's not an issue between version incompatibility but rather dependent on your |input()|. It would not fail if everything is a ...

14 years ago | 0

Answered
calling a function with lsqnonlin
@(x,y,z)chi2(x,y,z) You need to explictly declare the inputs. If there are none, leave it empty: @()chi2(x,y,z) Fo...

14 years ago | 0

Answered
How to sort one side of a matrix?
doc sortrows

14 years ago | 0

| accepted

Answered
Writing a function with variable outputs to convert a 3d matrix to 2d
No. Your inner-conscience is actually telling you that you don't want to do that! <http://matlab.wikia.com/wiki/FAQ#How_can_...

14 years ago | 0

Answered
Chap vector to matrix with special structure.
P = [1 2 pi 5 exp(1)]; idx = 1:ceil(numel(P)./2); PP = P(bsxfun(@plus,idx',idx-1))

14 years ago | 1

Answered
Window around an object
<http://www.mathworks.com/matlabcentral/fileexchange/26296-draw-bounding-box FEX:draw boundingbox> Maybe

14 years ago | 0

Load more