how does "[x,y] = WindowCenter(window)" work
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Haojue Yu
el 1 de Sept. de 2022
Comentada: Haojue Yu
el 1 de Sept. de 2022
when using [x,y] = WindowCenter(window) to determine the center of the window, what should "window" be?
4 comentarios
Respuesta aceptada
Rik
el 1 de Sept. de 2022
The documentation for that function is terrible. Let that be a lesson for when you write your own function. This help text is completely inadequate.
Even after reading the documentation for the Screen function, I can only tell you that window must be a window pointer or a screen number:
rect=Screen('Rect', windowPtrOrScreenNumber [, realFBSize=0]);
How you would get a window pointer is a mystery to me. Probably with this:
windowPtrs=Screen('Windows');
Más respuestas (0)
Ver también
Categorías
Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!