已回答
continue despite the error
you can use try...catch doc try

12 years 前 | 2

| 已接受

已回答
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...

12 years 前 | 0

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

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
"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...

12 years 前 | 0

| 已接受

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

12 years 前 | 0

已回答
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 ...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 1

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

12 years 前 | 2

已回答
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...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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(...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 1

已回答
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 = ...

12 years 前 | 1

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 1

| 已接受

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

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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 ...

12 years 前 | 1

加载更多