After writing a ~500 pages book in two versions for MATLAB and Python, I would like to offer a comparison from the point of view of a MATLAB user. Comments, corrections and additions via email are as always welcome! Continue reading “MATLAB vs. PYTHON from a MATLABer’s Perspective”
Using MRES and PRES as a Dictionary Between MATLAB and Python
Now that both new editions have been published, the MRES and PRES books can be used as a MATLAB-Python and Python-MATLAB dictionary. Continue reading “Using MRES and PRES as a Dictionary Between MATLAB and Python”
Mobile Phone Sensor Data Collection with MATLAB – Update
This week, the practical on data acquisition with LEGO Mindstorms, spectral and 3D cameras and smartphone sensors is running again. A lot has changed in the use of smartphone sensors in recent years, both on smartphones with MATLAB Mobile and on MATLAB Desktop – here is the update!
Continue reading “Mobile Phone Sensor Data Collection with MATLAB – Update”
Controlling Motors and Read Sensors of LEGO MINDSTORMS with Python
A LEGO vehicle with two motors and an ultrasonic sensor that stops 30 cm in front of an obstacle and then reverses was one of the first programming exercises in the data acquisition practical that we developed in 2017. We used the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware to connect the LEGO vehicle with MATLAB Desktop on a computer to solve for Exercise #2. While this support continues to be offered for Windows, Linux and macOS (Intel), it is not available for macOS (Apple Silicon). Exercise #15 uses a Python solution for programming the LEGO vehicle – but do not expect too much! Continue reading “Controlling Motors and Read Sensors of LEGO MINDSTORMS with Python”
Python/LEGO MINDSTORMS Exercise #15 Controlling Motors by Sonic Sensor
Sustainable Code for GUI Tools / Apps with MATLAB
In 1994, as part of my doctorate, I programmed a graphical user interface for an adaptive filter using MATLAB. I have continued to develop the code over the past 30+ years. Here is the story of sustainable MATLAB code in four chapters.
Continue reading “Sustainable Code for GUI Tools / Apps with MATLAB”
Importing, Processing and Displaying EnMAP Hyperspectral Images with MATLAB
On April 1, 2022, a satellite was launched as part of the German Environmental Mapping and Analysis Program (EnMAP) to collect hyperspectral data, which can be obtained free of charge. Here is a MATLAB script to import and display the data.
Continue reading “Importing, Processing and Displaying EnMAP Hyperspectral Images with MATLAB”
Stratigraphic Correlation of Multiple Sediment Cores Using MATLAB, Part 2
In geological drilling projects, two or more parallel cores often collected in order to compensate for core losses during drilling by overlapping sequences. Correlation of the core is a time-consuming and complex process that is usually done by very experienced geologists. Yesterday I posted the script for manual correlation of core records based on visual inspection of the record of sediment physical properties. This post explains how to use dynamic time warping for automated correlation of cores. Continue reading “Stratigraphic Correlation of Multiple Sediment Cores Using MATLAB, Part 2”