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

조회 수: 1 (최근 30일)
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
Rik
Rik 2019년 8월 11일
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 2019년 8월 12일
Never mind
Maybe in another chance. I'm a little sleepy.
So long. Bye
Thanks anyway !!!

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2019년 8월 12일
See this documentation page for a discussion of callbacks in App Designer apps or this documentation page for GUIDE apps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R12.1

Community Treasure Hunt

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

Start Hunting!

Translated by