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

más de 11 años hace | 2

| aceptada

Respondida
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...

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
"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...

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

Respondida
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 ...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 1

| aceptada

Respondida
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...

más de 11 años hace | 1

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

más de 11 años hace | 2

Respondida
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...

más de 11 años hace | 1

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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(...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

casi 12 años hace | 0

| aceptada

Respondida
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...

casi 12 años hace | 1

Respondida
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 = ...

casi 12 años hace | 1

| aceptada

Respondida
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...

casi 12 años hace | 0

Respondida
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...

casi 12 años hace | 0

| aceptada

Respondida
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...

casi 12 años hace | 0

Respondida
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...

casi 12 años hace | 0

Respondida
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...

casi 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 12 años hace | 1

Cargar más