Answered
Inserting functions into timers
handles isn't passed into the timer function so it can't see it. t.TimerFcn = {@my_callback_fcn, 'bloop',handles}; and...

15 years ago | 0

Answered
guide - interrupt ongoing callback and switch to correct callback when user clicks another button
One thought: use timers and stop the timer when the second button is pushed. doc timer doc start doc stop

15 years ago | 0

Answered
how to plot a matrix on a 3D graph
[xx yy] = meshgrid(M(1,2:end),M(2:end,1)); plot3(xx(:),yy(:),reshape(M(2:end,2:end),[],1)); or |surf| or |mesh| whatever type...

15 years ago | 1

| accepted

Answered
wanted: function for drawing simple network diagrams
Why not just use powerpoint/keynote/open office? *EDIT per clarification* doc rectangle %rectangles/circles etc. doc ann...

15 years ago | 0

Answered
Get derivatives of a noisy surface
Perhaps a point-wise least squares method might be of interest to you? This paper gives a fairly decent description of it for...

15 years ago | 1

| accepted

Answered
reformulating the axis grid for a plot
doc meshgrid doc ndgrid ?

15 years ago | 0

| accepted

Answered
How could I cut a matrix into subgroups?
[sz] = histc(X(:,1),unique(X(:,1))); %X is your matrix C = mat2cell(X,sz,size(X,2)) %each cell will contain one matrix This i...

15 years ago | 0

| accepted

Answered
finding the closest values in a set of data
[junk,index] = min(bsxfun(@(x,y)abs(x-y),A,B'),[],2); Of course it's possible!

15 years ago | 0

| accepted

Answered
How to improve speed using ezsur
Convert everything to double (perhaps using |subs| or |double|) and then call plain old boring regular |surf| on it.

15 years ago | 0

Answered
how to detect vector value in sequence in stateflow
Ahh! Nice clarification. %Sample Data X1=[1 1 6 6 6 7 7 2 3 4];% correct X2=[1 1 6 6 6 7 4 2 3 4];% wrong X3=[8 8 9 9...

15 years ago | 2

| accepted

Answered
heLP
imshow([image1(:,1:ceil(1:size(image1,2)/2)) image2(:,floor(1:size(image2,2)/2):end)])

15 years ago | 0

| accepted

Answered
Undefined varialble ? where?
I'm not positive, but I'm pretty sure there's a way through your decision tree that doesn't define them. The last outer else for...

15 years ago | 0

| accepted

Answered
Help with gray scale images
If you could show us the code with a sample image (e.g. 'cameraman.tif') it would help us. More than likely when you're viewing...

15 years ago | 0

| accepted

Answered
Is there a fuction double2str or something like this?
doc num2str doc sprintf ?

15 years ago | 6

| accepted

Answered
Image denoising
doc imdemos Then look at some of the deblurring demos.

15 years ago | 0

| accepted

Answered
Requirements for opening a matlabpool
You have to have the parallel computing toolbox (PCT).

15 years ago | 1

| accepted

Answered
3 z axes on a surface graph
figure;hold on surf(magic(3)) surf(rand(3)) surf(ones(3))

15 years ago | 0

Answered
What is your unusual use of MATLAB?
I originally wrote this function: <http://www.mathworks.com/matlabcentral/fileexchange/30214-imcensor FEX: imcensor> to censor ...

15 years ago | 6

Answered
Gui that opens another gui. Need to send variables from one gui to other gui and vice versa
<http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F> To get you started. To c...

15 years ago | 0

Answered
Union and Interseciton of Intervals
doc intersect doc union and friends. Beware of floating points, however. fpno = @(x)uint32(x*1000); %get rid of floatin...

15 years ago | 0

Answered
compare a group of data
unique(u.','rows').'; transpose and use the rows option, then retranspose If you don't want it sorted: [~,idx] = unique(u...

15 years ago | 0

| accepted

Answered
mldivide error
You probably want the vectorized version? h_L=0.86./sqrt(3+(1./2./lambda_i)+(0.86.*l.*u_B./pi./g./D_i).^2); Everything...

15 years ago | 0

| accepted

Answered
DCT digital watermarking
Hi Halil, The reason you're seeing the corrupted image is because you're working on all three channels (R,G,B) at once. Thes...

15 years ago | 0

Answered
Replace zeros with NaN's - when there are already NaN's in the matrix?
No reason for find and you can't convert nans to logicals. F(F==0) = nan;

15 years ago | 0

| accepted

Answered
What is your unusual use of MATLAB?
I've used MATLAB to prank my coworkers. All of our powerful computers are connected so it's easy to modify anyone's mfiles. A ...

15 years ago | 3

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
A "How many users are online" string somewhere on the home page.

15 years ago | 4

Answered
how can I fix an error in while loop
Apparently iter<maxl is a different size than dif>eps What is the output of these two commands: size(iter<maxl) size(dif) ...

15 years ago | 0

Answered
GUI - text instead of numbers
You could use a cell array that contains the girder names and properties. It finds the row of a cell array with working propert...

15 years ago | 0

Answered
How to skip the first line of a text file when reading it?
X = dlmread('ans68.txt','',2); %ans68.txt is your file. doc dlmread for more info

15 years ago | 2

Answered
Delete single values from a structure field
One way, assuming ALL fields need to have this applied: structfun(@(x)x(x>=0),your_struct,'uni',false); Welcome to MATLAB An...

15 years ago | 0

Load more