Answered
Preventing uiwait from opening a figure window when none exists
So you're putting a |uiwait()| on the figure and then you want them to hit the button before closing the figure? If so, I wou...

14 years ago | 2

Answered
Importing matrices in text files and creating a structure with 100 entries
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F FAQ:How to process a sequence of files> Also note,...

14 years ago | 0

Answered
pushbutton
figure; ht = uicontrol('units','norm','position',[0.5 0.5 0.1 0.1],'style','text','string','0'); hp = uicontrol('style','pus...

14 years ago | 1

Answered
comparing volume of two 3d matrices
If the objects are convex then you can use the second output of |convhulln| to give you the volume directly. If not, then you h...

14 years ago | 0

| accepted

Answered
Vectorization using expressions with matrices
value2 = constant*(reshape(A',numel(A),1)); %transpose, reshape, multiple isequal(value,value2)

14 years ago | 2

Answered
Consistent colors in GUI across systems
You could manually set the default colors for the root. This could be dangerous to other applications though: set(0,'defau...

14 years ago | 0

| accepted

Answered
Contour plots in terms of 3 variables
It sounds like you might be interested in a |streamtube| or |streamribbon| plot. doc streamribbon doc streamtube

14 years ago | 0

Answered
how can i translate a 2D image in x ,y directions using matlab?
My: <http://www.mathworks.com/matlabcentral/fileexchange/27251-imtranslate imtranslate()>

14 years ago | 1

| accepted

Answered
Please Speed UP This Algoritm!!!
|bsxfun| is lurking (update: and staying hidden)! The fastest I could get it was to dynamically preallocate your |for|-loop. ...

14 years ago | 0

Answered
index exceeds matrix dimensions error
After the first iteration of the loop, x,h,t, are all still scalars and you're going to try and refernce their second element (i...

14 years ago | 0

| accepted

Answered
How to create a structure array with intial values as zeros?
So something like: struct('name1',{zeros(5,6);zeros(5,6)},'name2',{[];magic(4)}) perhaps?

14 years ago | 0

Answered
Creating a 3D array out of multiple 2D arrays
cat(3,mask1,mask2,...) doc cat %for more info

14 years ago | 10

| accepted

Answered
How to find the K max or min values contained in a vector?
|sort| it _'descend'_ and extract the first k values.

14 years ago | 0

Answered
Files from toolbox/matlab broken out of nowhere
What does: which -all isprop return? and: which -all toeplitz Also, is there invisible ASCII on these lines o...

14 years ago | 0

Answered
how to create a surf plot for {x, y, z} where z is also a vector, thanks all!
You need to have points as 2d matrices in order to use |mesh| or |surf|. Look into |meshgrid| and |interp2| to get your points ...

14 years ago | 0

| accepted

Answered
out of memory
you're trying to create an array the size of [size(mov(1).cdata),length(mov)] i.e. prod([size(mov(1).cdata),length...

14 years ago | 0

Answered
Gap fill using two vectors without a loop
One of many ways: x = [1 0 0 0 1 1 1 0 0 1 1 0 1]; th = 1; %greater than this idx = strfind(x,zeros(1,th+1)); if ~isemp...

14 years ago | 0

| accepted

Answered
ginput
d=zeros(408,544,160); image = rand(size(d)); for i=1:160 figure,imshow(image(:,:,i),[]); [a,b]=ginput(1); a =...

14 years ago | 0

| accepted

Answered
how can i perform a registration to 2D images using ''rigid " transformation in matlab?
docsearch image registration To get you started.

14 years ago | 0

Answered
How to get the licence?
So have you or your organization purchased MATLAB? You need to buy it to get a legal and valid license.

14 years ago | 0

| accepted

Answered
structuring element
doc strel with the _arbitrary_ option.

14 years ago | 1

Answered
Setting KeyPressFcn on current figure
No, the figure with the callback has to have focus. You could have a new figure take over with the keypressfcn while it's active...

14 years ago | 0

Answered
Matlab editor gets stuck every 30 secs
Please contact Mathworks Technical Support: <http://www.mathworks.com/support/contact_us/index.html>

14 years ago | 0

Answered
Possible to create a function where the input is changed?
doc assignin doc evalin Why would you want to do this?

14 years ago | 0

| accepted

Answered
imshow border tight for subplot
Use |subplott| to generate axes handles for each individual subplot h = subplott(3,3); imshow('cameraman.tif','parent',h(6...

14 years ago | 0

| accepted

Answered
imshow border tight for subplot
Instead of using subplot, build the axes directly: figure('units','pixels','position',[200 200 800 400]); 5fig axes('uni...

14 years ago | 0

Answered
Gui
You need to run the *.m file associated with the *.fig file. Not the fig file itself. E.g.: _example210.m_ and _example21...

14 years ago | 0

Answered
Color scaling
docsearch colororder Explains how colors are selected, how you can change them and how you can set defaults.

14 years ago | 0

Answered
plotting results of an while loop
You overwrite t,v on each iteration of the for-loop. Instead you need to either plot them then or store them to plot later. ...

14 years ago | 2

Load more