How can i show my phote on the UIAxes during the callback function runing within APP designer?
1 次查看(过去 30 天)
显示 更早的评论
I want to design an app,when i enter the button'开始'in the left window,the button callback function works,like the right window showing .
there is four times for-loop in the callback function.what do i need is that one loop finished then a corresponding picture showing in the UIAxes on the left window ,but the fact is that only one dispaly in the left window until all for-loop finished.
the code as follow:
for ii = 1:trial_num
target_seq = randperm(target_number);%打乱目标顺序
textureGUI_tar = textureGUI_target(target_seq(1));%每次trial的目标图片
notarget_seq = randperm(nontarget_number);%打乱非目标序列
%每次trial的非目标图片
Screen('DrawLine',w,[255,255,255], xcenter-35,ycenter,xcenter+35,ycenter,2);
Screen('DrawLine',w,[255,255,255], xcenter,ycenter-35,xcenter,ycenter+35,2);
Screen('Flip', w);
WaitSecs(0.5);
Screen('TextSize',w,80);
Screen('TextFont',w,'Courier');
DrawFormattedText(w,'3','center','center',white);
Screen('Flip',w);
WaitSecs(0.5);
DrawFormattedText(w,'2','center','center',white);
Screen('Flip',w);
WaitSecs(0.5);
DrawFormattedText(w,'1','center','center',white );
Screen('Flip',w);
flushinput(tcpipClient);%清除缓存数据
WaitSecs(0.5);
imshow(strcat(target_info(ii).folder, '\', target_info(ii).name),'Parent',app.UIAxes);
end
Could you give me some adives if you meet the same question and solve it successfully? thank you here.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 图像滤波 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!