Answered
continue despite the error
you can use try...catch doc try

10 years ago | 2

| accepted

Answered
How to get the selected variable in the workspace ?
I'm not aware of any such function. However, you can simply drag and drop the variable in the command window. If it's for pl...

10 years ago | 0

Answered
cell to vector transformation
idx = cellfun(@isnumeric,d); %find the numeric values in cellarray out = [d{idx}]; %retrieve values from cell array

10 years ago | 0

| accepted

Answered
WHY THIS ERROR OCCUR ''??? Subscript indices must either be real positive integers or logicals."" IN 14TH LINE OF MY PROGRAM.PLEASE HELP ME .....THANKING YOU
You are trying to retrieve values from ybus using n1 and nr, which are derived from zdata. However, zdata contains values that a...

10 years ago | 0

Answered
Time Comparison and Tic Toc
With tic toc you measure the time elapsed between the 'tic' and 'toc' command. So for instance tic %you code here ela...

10 years ago | 0

Answered
Using IF to remove upper and lower boundaries
So you want to continue if theta1 > 0.7297 or if theta < -0.7297? Then you could test for both in the if statement: if (the...

10 years ago | 0

| accepted

Answered
"If sentence" error
In your code, n is a string (you make it a string with num2str). In the if statement, you compare n with a number, so it will al...

10 years ago | 0

| accepted

Answered
Obtaining pixel value from image in GUI
You could use imtool for that if you have the image processing toolbox.

10 years ago | 0

Answered
how to limit which uicontrols are stretched when a GUI window is resized
If you place all your uicontrols in a uipanel, you only have to change the position of your uipanel in the resizeFcn. Saves you ...

10 years ago | 0

| accepted

Answered
Variables not saved after function completes. Help needed
The cleanest (and probably fastest) method is to let load(filename) store into a variable, and let the function return this vari...

10 years ago | 1

| accepted

Answered
How can I use input() in a standalone Executable?
I guess this is because input needs the command window. Loren explained how input behaves in deployed programs. http://blogs.mat...

10 years ago | 1

Answered
Memory during a loop
sure, you can just clear the variable: clear varname check: doc clear

10 years ago | 2

Answered
Indexing Based On Cell Array
a is an matrix of 1 row and 50 columns. And like doc sortrow states: "If A is an m-by-n matrix, then B = A(index,:)." So, i...

10 years ago | 1

| accepted

Answered
Sorting the variables in cells
sortrows can sort cell arrays. This should work: out = cellfun(@(x) sortrows(x,2),r,'uniformOutput',false) the only pr...

10 years ago | 0

Answered
Am trying to run a program using Duo Core2 processor. I am getting errors which I donot know to solve.
You probably forgot to copy the function called statsizechk from the other computer, or it is not on your matlab search pad. Cop...

10 years ago | 0

Answered
change gui components properties from command window or other m file
Check out Doug's guide on interaction between different GUIs. You can easily share variables (and in your case probably the hand...

10 years ago | 0

Answered
While loop is continuous.
You're not changing the value of deposit in the loop, but always setting it at 300000/5. So deposit is always smaller than 30000...

10 years ago | 0

Answered
xLabelTick and Save graph button
1. eps is a vector format and thus does not have a resolution. 2. change: datetick('x','HH:MM') into: datetick(...

10 years ago | 0

Answered
Having a problem building a graph in a GUI. No errors in com. window
You have double quotes in the callcabk around updateAxes, that might be the problem. try set(handles.timeStepList, 'Callbac...

10 years ago | 0

Answered
How can I pass options from popupmenu to another callback function?
You don't need to pass the selected option when the selection is made in the popup. The easiest is simply read out the popup val...

10 years ago | 0

| accepted

Answered
how to implement Push Button right click with options like open & close using matlab guide
I guess you want to make a context menu: http://www.mathworks.nl/help/techdoc/ref/uicontextmenu.html If you use guide, I'd...

10 years ago | 1

Answered
What is the order of the files picked in uiget files, when a folder is selected and listed using dir, as i use it to paste in an order in powepoint every time i get a different order being pasted
Simply sort them yourself? [files path] = uigetfile({'All files (*.*)'},'Select files'MultiSelect','on'); filesSorted = ...

10 years ago | 1

| accepted

Answered
passing the values between two guis
You can use setappdata and getappdata. This is nicely explained here by Doug: http://www.mathworks.com/matlabcentral/filee...

10 years ago | 0

Answered
How to add a property to the handles?
So your code is: handles.edit1 = 0; This way you don't create an object, you simply add a field to the structure "handle...

10 years ago | 0

| accepted

Answered
how to load variables in the workspace
You can read the mat file with data = open(fullfile(ruta,nom)); the contents of your file will be stored in struct "data...

10 years ago | 0

Answered
help required urgently about this error "REFERENCE TO NON EXISTENT FIELD"
This is probably due to using colormap without axes handle. try: colormap(handles.axes3,handles.ycbrmap) or see: doc c...

10 years ago | 0

Answered
help required urgently about this error "REFERENCE TO NON EXISTENT FIELD"
you have to save the handles structure at the end of the callback if you want to store something in there. At the end of pushbut...

10 years ago | 1

| accepted

Answered
Memory Usage
You can use the profiler with memory stats. see http://undocumentedmatlab.com/blog/undocumented-profiler-options/

10 years ago | 0

Answered
datatransfer between 2 GUIs
Use setappdata and getappdata. This is an easy way to share data between GUIs, without copying the data. Watch this excellent...

10 years ago | 0

| accepted

Answered
How do I lock the current directory while a GUI-based program is running?
Why don't you simply add your path to the MATLAB search pad? Then you'll never have this problem. If you want, you can even add ...

10 years ago | 1

Load more