Returning error that there is not
Mostra commenti meno recenti
Hi,
I made this function
function [out] = pardin(N,T)
that contains a figure handle as structure with other handles; some of these are generated from for loop 'cause their position properties in figure are loop-depending;
So, if I edit this function and turn it in a simple m-file (providing variables called N and T, of course) it works, but if use it as above (as a function) it returns me this error:
Error using uitable
Width and height must be > 0
Error in uitable (line 52)
thandle = builtin('uitable', varargin{:});
Error in pardin (line 43)
S.w(jj,1) = uitable('Parent', S.fig, 'Data', A(:,:,jj), 'Units', 'normalized', 'Position', [0.7
1-((jj+jj+0.09)*0.1) 0.26 0.15 ]);
I think this is the error that it should return if 'Position' vector has 3rd and 4th element not positive, but my S.w handle, as you can observe, has those positive elements. How is it possible ? I tried to delete this handle and it returns same error for the other handles. As I wrote, if I use it as m-file script it works
4 Commenti
Walter Roberson
il 21 Dic 2012
At the command line, please type
dbstop if error
and then run the program. When it stops, please show us what the value of jj is. You might need to use "dbup" to move between the environment of the uitable function and your pardin routine.
Marco
il 21 Dic 2012
Walter Roberson
il 21 Dic 2012
I was working on the hypothesis that jj might have a value that caused the Y to be out of range and the wrong error being returned.
Okay, with the same breakpoint in place, run until error, and then at the uitable level, please show us
varargin{:}
Marco
il 21 Dic 2012
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Symbolic Math Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!