What a callback function means? Access to hyperlinks of structure figures fields. Workspaces. disp(ans).

1 visualización (últimos 30 días)
NOTE: THE CODE BELOW IS THE SAME OF MY PAST QUESTION.
Hello and greetings to all !!!
My goal is, what does a callback function mean? Also, through this, to try to do in another way in based on what the following code does. In other words, if the callback works for doing something what the code below does. Something like the things mentioned in the title of the question.
In one of my previous questions I putted "callback" as a tag and in the link there are several examples. But, I need a more explicit and simple example to carefully, tha is, slowly, understand what it means.
Whether it works or not, I would like to know what a callback is. Please
Thanks in advance.
% Many lines before this segment or activity. Maybe doing figures plots and savefigs
while true
prompt='Desea ver el o los gráfico(s) resultante(s) (si/yes/no). : '; % Do you wish to see the figures (yes/yes/no) ?
lo=input(prompt, 's');
lo=strtrim(lo);
if strcmpi(lo,'si') | strcmpi(lo,'no') | strcmpi(lo,'yes')
clc
break;
elseif strcmpi(lo,'')==1 | strcmpi(lo,'si')==0 || strcmpi(lo,'no')==0 || strcmpi(lo,'yes')==0
clc
display ('La respuesta debe ser si o yes o no.'); % The answer has to be yes or yes or no
end
end
si=1;
yes=2;
no=0;
lo=subs(lo);
if lo==1 | lo==2
for i=aro % aro is a growing vector. aro = [1 2 3 ...]
%close
if lo==1
fig2=openfig(sprintf('papo%d.fig',i),'reuse');
B.(genvarname(['B' num2str(i)])) = fig2;
assignin('base','B',B);
fprintf('B%d = ',i);
[B.(['B' num2str(i)])];
disp(ans);
disp('Haga click aquí <a href="matlab:dbcont">dbcont</a> o escriba dbcont para continuar el programa.'); % Click here or write dbcont
fprintf('\n');
openvar('B');
keyboard
G(i)=arrayfun(@getframe,[B.(['B' num2str(i)])],'un',0);
F(i)=cell2mat(G(i));
else % This is only for invisible figures. Above the else.
fig2=openfig(sprintf('papo%d.fig',i),'invisible');
B.(genvarname(['B' num2str(i)])) = fig2;
assignin('base','B',B);
fprintf('B%d = ',i);
[B.(['B' num2str(i)])];
disp(ans);
disp('Haga click aquí <a href="matlab:dbcont">dbcont</a> o escriba dbcont para continuar el programa.');
fprintf('\n');
openvar('B');
keyboard
G(i)=arrayfun(@getframe,[B.(['B' num2str(i)])],'un',0);
F(i)=cell2mat(G(i));
end
end
%f14 % Introduce to the Model Explorer and Model Hierarchy with f14. Just remove the first "%"
save_to_base % File Exchange.
B
commandwindow
end
% Many lines after this segment or activity. Maybe close figures or doing a movie
  2 comentarios
Rik
Rik el 11 de Ag. de 2019
This question doesn't clarify your previous one. Please respond in a comment there instead of posting a new question.
César Hernández
César Hernández el 12 de Ag. de 2019
Never mind
Maybe in another chance. I'm a little sleepy.
So long. Bye
Thanks anyway !!!

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord el 12 de Ag. de 2019
See this documentation page for a discussion of callbacks in App Designer apps or this documentation page for GUIDE apps.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Productos


Versión

R12.1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by