Borrar filtros
Borrar filtros

gui中,使用gin​put获取屏幕上的点​,响应速度越来越慢

10 visualizaciones (últimos 30 días)
尧 张
尧 张 el 9 de Abr. de 2022
Respondida: 埃博拉酱 el 24 de Abr. de 2022
% 我设计了一个函数用于获取屏幕上的点,并将其坐标添加到数组中。但是随着坐标的不断获取,响应速度越来越慢,请问可能是什么原因造成的呢?以下是代码片段。
function AddAtom(~,~)
[x,y,button]=ginput;
x_end=round(x(end));
y_end=round(y(end));
button=button(end);
end

Respuestas (1)

埃博拉酱
埃博拉酱 el 24 de Abr. de 2022
你这个函数本身不会造成响应变慢,应该是其它代码的问题。

Categorías

Más información sobre 可视化探查 en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!