Phy3hogga / User_Interaction

Miscellaneous User Interaction functions for Matlab used in various self-hosted repositories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Interaction

Matlab scripts that provide some simple quality of life functions while providing simple user input. This is a supporting submodule for other repositories.

Functions

Announce_Finish.m

Plays a stock matlab sound, designed for making clear that a script running in the background that takes a prolonged period of time to finish execution has ended. Allows for a reduced frequency of checking the progress of the script.

Announce_Finish();

User_Select_Coordinate.m

Selects a user specified co-ordinate from an image within a structure.

%Random data
Structure.Data.I = rand(50,50);
%Field I containing the data
Selection_Parameters.Image_Field = 'I';
%If the co-ordinate selection is absolute or relative to the centre of the image
Selection_Parameters.Relative_Center = true;
%Get X, Y co-ordinates of the user selection (interactive window)
[X, Y] = User_Select_Coordinate(Data, Selection_Parameters)

Built With

References

About

Miscellaneous User Interaction functions for Matlab used in various self-hosted repositories.


Languages

Language:MATLAB 100.0%