Answered
Subscript indices must either be real positive integers or logicals.
Run: dbstop if error Then run your code by calling the name of the file or function. The debugger will stop on the line...

13 years ago | 0

Answered
Is there anyway to create a GUI with table and to show a graphic plotting the data as we insert data on table?
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples>

13 years ago | 0

Answered
How to Plot a Matrix?
imagesc(X); or pcolor(X);

13 years ago | 2

| accepted

Answered
How to interrupt an executing while loop in GUI by clicking another 'EXIT' button without error for calling deleted Objects
You could always check: |ishandle(handles.h)| before trying to |get()|

13 years ago | 0

Answered
Does Matlab support strcpy?
Looking at: <http://www.cplusplus.com/reference/cstring/strcpy/ strcpy> (and not being a c++ expert) it looks like you don't eve...

13 years ago | 0

Answered
How can I hide a script so that it is not callable any more?
I would recommed using packages in exactly the same way. Here is the doc for packages: <http://www.mathworks.com/help/releas...

13 years ago | 1

Answered
can anybody tell me how to do cropping of image automatically and save it?
<http://www.mathworks.com/matlabcentral/answers/57446 FAQ> And then let this play with |imcrop()| or basic indexing,.

13 years ago | 0

Answered
(GUI variable saving) guidata vs appdata
|guidata()| Just uses |setappdata()| internally. That being said: |setappdata()| will be faster since you don't have the overhe...

13 years ago | 0

| accepted

Answered
Alternative to the Statistics toolbox
Contact your friendly sales rep :)

13 years ago | 0

| accepted

Answered
Show tick marks above plot
hAx = axes; plot(1:10); set(hAx,'XAxisLocation','Top');

13 years ago | 0

Answered
How can I update the results from a Timer to a text box every 5 second?
h = uicontrol('Units','Normalized','FontSize',15,'Position',[0.1 0.1 0.8 0.8],... 'Style','Text'); drawnow; T...

13 years ago | 0

| accepted

Answered
'LineWidth' feature is not available in 2012a?
It's a property of a line not a function: h = plot(rand(1,10)); set(h,'LineWidth',10)

13 years ago | 0

| accepted

Answered
Find the point on a polygon that is closest to a point near the polygon
<http://www.mathworks.com/matlabcentral/fileexchange/19398-distance-from-a-point-to-polygon FEX file> and friends

13 years ago | 0

Answered
not sure how to approach this
idx = randperm(numel(A)); To give you a list of random linear indices to visit. Then use a |for|-loop to loop over these...

13 years ago | 0

Answered
Can a GUI track commands and output them in a report?
Alright, you piqued my interest. Save this in a file called _morphScriptGUI.m_ Then run it normally and enjoy: classdef...

13 years ago | 1

| accepted

Answered
Can a GUI track commands and output them in a report?
This questions is a little too vague to answer explicitly but let me throw an idea out there: If you are trying to report the...

13 years ago | 1

Answered
MATLAB GUI Pre-Selected button
If you are using a <http://www.mathworks.com/help/releases/R2012b/matlab/ref/uitoggletool_props.html |uitoggletool()|>, which is...

13 years ago | 0

| accepted

Answered
How to pause matlab a specific amount of time between iterations??
Yes, use a |timer| for this; not a |while|-loop! What I would do is put a _'StartDelay'_ on the timer for say 2hrs and 45 min...

13 years ago | 1

| accepted

Answered
finding approximate indices in a monotonically increasing array
[~,idx] = histc(ref,t); Use |histc()| to find the bin containing _ref_.

13 years ago | 1

Answered
Custom 'uimenu' concatenates each time GUI is run
Every time you call: mh = uimenu(f,'Label','Find'); It adds another menu. If you instead want to overwrite or delete t...

13 years ago | 0

Answered
How to work around mex-ing tsmovavg
One thing you may want to consider is using |conv()| or |filter()| instead. With the right kernel these will give you a moving ...

13 years ago | 0

Answered
I have 2 matrices, containing x,y data, how do i find the closest point and extract data about that point?
How about using |dsearchn()| to find the nearest neighbors? <http://www.mathworks.com/help/releases/R2012b/matlab/ref/dsearch...

13 years ago | 1

Answered
using loops to assign numerically assigned variables?
* <http://www.mathworks.com/matlabcentral/answers/57445 A1,A1..An in a loop> * <http://www.mathworks.com/matlabcentral/answer...

13 years ago | 0

| accepted

Answered
Logical operators not working inside while loop
Well you never change _p_ so it is always 12! x = 10; while x~=1 x = x-1; disp(x) end Alternatively you ca...

13 years ago | 2

| accepted

Answered
What is the easier way of listing several symbolic variables?
for ii = 1:20; syms(['x' num2str(ii)]); end But more importantly, can you represent it as one 1x20 vector instead? ...

13 years ago | 1

Answered
grouping elements of a column that correspond to specific elements from another column
Looks like you want to use |unique()| with the _'rows'_ flag and then something else to remove zeros and nans.

13 years ago | 0

Answered
Is there anyway to change the Matlab user interface back to the way it was before R2012b?
Hi Bill, Please contact tech support with the _specific_ things you do not like so that we can try to make the desktop more a...

13 years ago | 0

Answered
volume visualisation of brain data
I'd start here: <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=volume+visualization FEX:Query...

13 years ago | 0

Answered
How to achieve a faster 3D Translation?
You *_may_* be able to get better speeds with |griddedInterpolant()|, especially if you have to do this multiple times at the sa...

13 years ago | 0

| accepted

Answered
Best way to store a variable outside of a loop
[pks(i), locs(i)] = findpeaks(etc.)

13 years ago | 1

Load more