⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mousepos.m

📁 这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -