7.648 Ergebnisse
Wait a certain time for a single keypress
CH = getkeywait(P) waits for a keypress for a maximum of P seconds. P should be a positive number. CH is a double representing the key pressed key as an ascii number, including backspace
Matlab implementation of classic Sokoban game including large set of levels
Sokoban game implementation without GUI. Game board is simply figure object composed of concatenated images.Keys pressed are read by the game algorithm by @key_pressed_fcn function. Image of the
Emulation of the map-building game Carcassonne, including 4 expansion packs
Matlab implementation of the addictive game 2048
this by sliding the numbered tiles around (using the arrow-keys). When two identical numbers meet, they merge by adding up. This allows you to generate powers of 2, but it will get exponentially harder
Check if mouse button is pressed programatically
Get a keypress
. getkey('non-ascii') or getkey(N, 'non-ascii') uses non-documented matlab features to return a string describing the key pressed. In this way, keys like ctrl, alt, tab etc. can also distinguished. The return
Send key strokes to any window from within Matlab
Send key strokes to a named Window. Alt, Ctrl, Shift, Enter and Tab areall supported, allowing you to fully navigate the menu of other programsfrom within Matlab. If you simply wish to type into
Pan and zoom with simple keystrokes.
Use this tool to move quickly around the data displayed in a 2-D plot. Make sure the figure has focus, and then press any of the following keys. Clicking and dragging will pan the data. Keys you can
EditorMacro - assign a macro to a keyboard key-stroke in the Matlab Editor and Command Window
Version 1.3.0.0
Yair AltmanEditorMacro assigns a macro or action to requested key-binding in the Matlab Editor & Command Window
EditorMacro; % get list of current key-bindings bindingsList = EditorMacro('ctrl r'); % get list of bindings for -R [bindings,actions] = EditorMacro; % get list of available built-in action-names
Get MD5 of files or arrays as fast C-Mex
MD5 hash of files, strings and arrays (RFC 1321)Hash = GetMD5(Data, Mode, Format)INPUT: Data: File name or array. Mode: CHAR to declare the type of the 1st input. 'File': Data is a
GETUNDOC returns a structure of undocumented properties (names & values) for the specified object
undocumented properties of H, while skipping the following standard undocumented properties: ALimInclude, ApplicationData, Behavior, CLimInclude, HelpTopicKey, IncludeRenderer, PixelBounds, Serializable
This program run until you press 'q' (or another key you want). It's work even with GUI
Get elevations from Google Maps (Google API key required) from latitute and longitude, coordinates input (UTM)
Get elevation from Google Maps (you need an API key to use this function! Check on Google developers page). The function create an URL to download the points elevations. Each URL corresponds to a
Basic RSA Public Key encryption and signing to demonstrate the principle.
This submission was created to learn a bit about RSA Public Key encryption and signing. It consists of the following files: GenerateKeyPair (Generates the public and private key) Encrypt (using the
Presentation software for Matlab
MIB is a package for segmentation of multi-dimensional (2D-4D) microscopy datasets
Get a table of contour line coordinates from a contour object.
getContourLineCoordinates(cm);--or-- contourTable = getContourLineCoordinates(h);contourTable = Level.........Group..........X............Y ____________________________________
MatDRAM is a pure-MATLAB Adaptive Markov Chain Monte Carlo simulation and visualization library.
Logs each key press and time, and saves to a data file.
:% logFileName = string = save file name (optional)%% OUTPUTS:% A .mat file with a data structure: KEY_PRESS_DATA%% KEY_PRESS_DATA.time = vector of the times when keys were pressed, in% units of seconds
MatlabGraph allows the display and interaction with graphical objects.
Determines whether a key is up or down at the time the function is called
Determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.So you don't need to use maltlab
Store any matlab objects to disk or keep them in memory, indexed by arbirary objects.
};disk_cache('set', ds, cacheId);It can later be retrieved byds = disk_cache('get', cacheId);Advantages over using .mat files:* indexing with arbitrary keys* automatic detection of outdated data using outdatedKey
BASK simulation
This script simulates the Binary Amplitude Shift keying. Since BASK is a digital modulation scheme, you can modulate as many bits as you want. however, I have only simulated it for 5 bits, so that
Play tetris using the Nintendo Wii Balance Board and the Microsoft Kinect
Some examples on building MATLAB code with existing C code
image stack viewer
imstack is a light-weight image stack viewer for MATLAB that supports:* slice scrubbing by scrolling or arrow key press* color stack viewing* mask overlay (by channel)* biological image formats (such
Very similar to classic Asteroids... but THIS TIME it's called Johnsteroids!
phase shift keying
A suite of mex/m files for displaying psychophysics stimuli
Retrieve a google map from the command line using the Static Google Maps API.
obtain a Google Maps API Key, freely available from Google. The key may be obtained here: https://developers.google.com/maps/documentation/static-maps/ (click "Get a Key") Note, the key requirement places
Binary Phase Shift Keying Simulation.
This script simulates the Binary Phase Shift keying. Since BPSK is a digital modulation scheme, you can modulate as many bits as you want. however, I have only simulated it for few bits, so that the
Quadrature Phase Shift Keying Signal generator
Quadrature Phase Shift Keying signal generator for analysing how two Binary Phase Shift Keying signals can be combined together to generate a Quadrature Phase Shift Keying signal. The program
SoundVolume sets or gets the computer system's speaker sound volume, using Java
SoundVolume sets or gets the computer's system speaker sound volume Syntax: volume = SoundVolume(volume); SoundVolume(volume) sets the system speaker sound volume. The volume value should be
Hash table declaration
H = hash;H('key') = value; %assign value to keyv = H('key'); % retrieve value for a keyH.keys % return cell array of keysH. values % return array of valuesH.idx %
a fully interactive canvas that provides tools to produce professional-looking schematic diagrams.
various commands on the canvas. To see what these commands are, user can bring forth the 'key' pushbutton located at the top of the canvas. In addition of checking the various assigned keys, one can also
Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file.
and store the parsed data in a MATLAB structure. This data represents the graph of the transportation network.2) Plot the MATLAB structure to get a visualization of the transportation network, its nodes
Extract data tip text and handles.
getDataTips() - prints content of all existing data tips in the current figure to the command window.getDataTips(h) - specify an array of figure or axis handles. content = getDataTips(__) - stores
Files and code from Computational Statistics: Getting Started with Classification using MATLAB®
This code is provides a simple introduction to some of the Classification capabilities in Statistics Toolbox. Key techniques used includeUsing normplot to see whether features are normally
robust point set registration using mixture of Gaussians
Shows a very straightforward chroma key method in Matlab
This is a simple demonstration of how to perform chroma keying in Matlab using HSV.The method converts an RGB image to HSV and then thresholds the Hue (H) channel between two limits. The typical
finds the key points in SIFT algorithm
This software detects the key points location for a given image.
This file contains the Matlab implementation of Binary Frequency Shift Keying (BFSK)
This file contains the Matlab implementation of Binary Frequency Shift Keying (BFSK)
MATLAB code for Frequency Shift Keying (FSK) Modulation and Demodulation
The Frequency Shift Keying (FSK) modulation and demodulation takes place with the input given by the user and this code doesn't need any additional toolbox.
MATLAB code for Amplitude Shift Keying (ASK) Modulation and Demodulation
The Amplitude Shift Keying (ASK) modulation and demodulation takes place with the input given by the user and this code doesn't need any additional toolbox.
Demo files to accompany the Introduction to Simulink webinar
This demo helps you apply the key features of Simulink that are discussed in the "Introduction to Simulink" webinarThe demo was specifically built using the features and concepts that are shown in
Improved Matlab interface for SSH2/SFTP/SCP (supports public key) using the Ganymed-SSH2 javalib.
and SCP file transfer functions are included. Supports public key authentication and improved multiple command support. This requires the open-source Ganymed SSH-2 for Java that is freely available and
A dynamic search box key press function callback for an edit box
set(edit_h,'KeyPressFcn',{@KPF_CB,jedit_h,[],fig_h,list,@my_fun})% set(jedit_h,'MouseReleasedCallback',{@KPF_MR_CB,edit_h}, ...% 'MousePressedCallback',{@KPF_MP_CB,edit_h})% % function my_fun% get(edit_h,'String')% end% % Notes% -
Prediction error sum of squares.
Make regular+ Keyboard Shortcuts work after a Figure window grabs focus from the desktop.
I habitually use Keyboard shortcuts to get around, Ctrl+0 to go to the Command Window, Shift+Ctrl+0 to the editor etc., but as soon as a plot is thrown up they don't respond. What's more is that I
Wait for and identify a pressed key
The function GETK fulfills the similar tasks as its prototype, the function GETKEY. It waits for a keypress, stores the key identifier and a period of the waiting. Since the new function behaves
Full path name for partial or relative path
GetFullPath - Get absolute path of a file or folder nameThis function converts a partial or relative name to an absolute full path name. The fast Mex works on Windows only, but the M-file runs on
An easy-to-use tool to optimize trajectories for interplanetary missions using swingby manoevres
Returns last key pressed in command window without having to explicitly wait for input. M-file & MEX
These functions retrieve the last key pressed in the command window without having to explicitly wait for input. Useful for situations where code is executing and you want to poll for keyboard input
Coherent Receiver for Binary Frequency Shift Keying Modulation
Coherent Receiver for Binary Frequency Shift Keying Modulation
FileStructure viewer, Store Bookmarks, Custom KeyBoard Hotkeys, Live Templates, Navigation History
=~-~=~-~=~-~=~-~=~-~=~-~=~-~=~-~[WARNING] This is a Java package, downloading via FileExchange will get you only the source code.=~-~=~-~=~-~=~-~=~-~=~-~=~-~=~-~[INSTRUCTIONS
Time-lapse walk, 10 sec video
it in GUI. Shifts can be adjusted with left/right/down/up arrows keys. If fast checkbox enabled then step is 10 pixels otherwise 1 pixel. image no. 100 is used as referecne image. Then rest images can
Multi-Dimensional Data Visualization
Open source version of the original ISET, used as the basis for ISETBIO
Nuclei tracking, with graphical user interface for visualising and ammending tracks
This code does the PSK modulation and demodulation of a randomly generated bit pattern
Phase-Shift Keying is a digital modulation scheme that conveys data by changing, or modulating, the phase of a reference signal (the carrier wave). In the code, the carrier is a sine wave and