Keypress to another program
Afficher commentaires plus anciens
Hello!
So I have some scripts which are basically a series of multiple pictures. I also have an independent program which can set markers via keypress (1,2,3 etc). What I am searching for is a way when the picture changes to automatically send another marker. Is that thing even possible? Either with matlab or any onther workaround?
P.S. If yes, can it work in a way that the pictures remain in fullscreen or should I use a dual monitor setup?
Thank you!
Réponse acceptée
Plus de réponses (1)
darova
le 16 Fév 2020
What about ButtonDownFcn?
function main
x = linspace(0,10,50);
y = sin(x);
h = plot(x,y,1,1);
set(gca,'buttonDownFcn',@myfunc)
msgbox('click of graph')
function myfunc(~,~)
set(gca,'color',rand(1,3))
end
end
Catégories
En savoir plus sur Data Exploration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!