This is a funny one – how to make a Matlab figure do some stuff on-demand with key presses and GUI elements.
Category: matlab
Matlab R2017b – the MATLABWindow issue
I almost forgot, while discussing libpam last time, that the top reason for Matlab R2017b crashing in flames and destruction on Slackware 14.2 is actually MATLABWindow (and the Chromium underneath) that are causing problems. Solution? As always, cheat with libraries.
Matlab R2017b + Slackware 14.2 = libpam.so.0 missing
Installing newer versions of Matlab on not-PAM-ified linux requires supplying libpam.so.0 somewhere.
Working with AS5048a on Arduino with Matlab plots
Goal: postprocess what absolute magnetic angle measurement sensor (woah) AS5048a returns with Matlab in order to see plots and make animations. First result: what in the name of valhalla is the Matlab serial doing?! Second result: works.
Fixing problems with Matlab + serial connection + fprintf + string variables
So, last night I had a problem with a simple walking quadruped robot. The whole problem circles the differences between: fprintf( robot, ‘250 250\n’) fprintf( robot, test1) fprintf( robot, ‘%s’, test1)
Using mouse for control in Matlab
So, it basically boils down to an old problem: how do I get some user-controlled inputs in Matlab? Keyboard handling in real-time is basically nonexistant, joystick is alright, but the most easy way to get some input and freedom of controlling things is – to poll the mouse position. Spoiler alert: xy = get( 0,…
Quick Matlab guide to the unicycle control
Let’s get going with a short series of tutorials dedicated to nonlinear control examples with Matlab/Octave implementation. First to go: unicycle.
Beautiful plots in Latex
Quick links: https://github.com/matlab2tikz/matlab2tikz – Matlab to TikZ (Latex graphics) conversion tool for plots https://www.sharelatex.com/learn/TikZ_package – TikZ documentation – general graphics https://www.sharelatex.com/learn/Pgfplots_package – Pgfplots documentation – plotting tool inside Latex Modifications and examples below.
Plot names in Matlab – using the ‘Tag’ property
Did you know you can tag the plots in Matlab for easier searching? Because I fuckin’ didn’t. Why so brutal? Well, after 6 years of writing your PhD in Matlab you CAN become furious when you realise instead of keeping the links to the currently opened plots in a global variables and different lists you…
Matlab interface for Dynamixel motors and Bioloid robot
This is an old one, but is working quite nice and should be still useful for working with Dynamixel motor (AX-12+, AX-12A). The goal was to have a nice toolbox used for direct control of Dynamixel motors using USB2Dynamixel or any other USB-Serial (half-duplex, ~1Mbps) adapter.