mousepos.m
来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 20 行
M
20 行
function [x,y] = mousepos();%MOUSEPOS Get the current mouse position.% [x,y] = MOUSEPOS() converts the mouse location in root object units to % pixel location with respect to the figure.% Jordan Rosenthal, 12/14/97Root_Units = get(0, 'units');Fig_Units = get(gcbf, 'units');set(0, 'units','pixels');set(gcbf, 'units', 'pixels');Mouse_Pos = get(0, 'PointerLocation');Fig_Pos = get(gcbf, 'Position');set(gcbf, 'units', Fig_Units);set(0, 'units', Root_Units);x = (Mouse_Pos(1) - Fig_Pos(1));y = (Mouse_Pos(2) - Fig_Pos(2));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?