bladeRF/host/libraries/libbladeRF_bindings/matlab
Robert Ghilduta 5627503b27 matlab: bump version to 1.1.0
v1.1.0 (2025-05-06)
--------------------------------
 * Add bladerf_image_type_to_string API binding
 * Add missing RFIC_BIST loopback type
 * Improve enum string handling and conversion functions
 * Fix module default value handling in calibrate method
 * Standardize version information handling
2025-05-11 04:17:01 -07:00
..
test matlab: Added methods for LMS6 DC cal routines 2015-12-12 21:18:56 -05:00
.gitignore matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF.m Standardize version information. 2022-04-03 19:54:51 -07:00
bladeRF_IQCorr.m MATLAB isn't automatically handling conversion of 2022-04-03 19:50:32 -07:00
bladeRF_Misc.m matlab: add BladeRF_Misc for miscellaneous measurements and controls 2018-08-07 11:22:19 -05:00
bladeRF_rx_gui.fig matlab: add ability to select channel in bladeRF_rx_gui 2019-08-29 00:08:48 -07:00
bladeRF_rx_gui.m matlab: add ability to select channel in bladeRF_rx_gui 2019-08-29 00:08:48 -07:00
bladeRF_Simulink.m host: matlab: fix tx_gain property handling in simulink 2018-09-26 12:43:42 -04:00
bladeRF_StreamConfig.m matlab: Added automatic RX/TX DC correction 2015-12-28 22:20:20 -05:00
bladeRF_VCTCXO.m matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
bladeRF_XCVR.m More of add explicit conversion of channel enum strings 2022-04-03 19:54:13 -07:00
CHANGELOG matlab: bump version to 1.1.0 2025-05-11 04:17:01 -07:00
libbladeRF_proto.m matlab: add missing bladerf_image_type_to_string 2025-04-24 04:36:36 -07:00
README.md matlab: Update README.md 2017-07-05 08:58:17 -07:00

MATLAB & Simulink Bindings

This directory provides libbladeRF bindings for MATLAB and Simulink.

These bindings are implemented as a thin layer of MATLAB code that utilizes loadlibrary to load libbladeRF into the MATLAB process and calllib to execute libbladeRF functions.

The various device control and configuration parameters are mapped to accessors methods, which yields a simple and intuitive interface. For example, to open a device and configure its RX and TX frequencies:

device = bladeRF();
device.rx.frequency = 915.125e6;
device.tx.frequency = 921.700e6;

Before Starting

You will need to generate a thunk file (a compatibility layer for loadlibrary()) so that MATLAB can correctly call the libbladeRF functions.

Run help bladeRF.build_thunk to view instructions on how to have MATLAB build a Thunk file to use in conjunction with libbladeRF.

For more information, use the MATLAB help and doc commands on the files in this directory, as well as on the various object properties contained in these files.

MATLAB Toolbox Requirements

Files

Filename Description
bladeRF.m Top-level object for MATLAB libbladeRF bindings. See doc bladeRF for information about the available properties and methods.
bladeRF_Simulink.m MATLAB System Object implementation for Simulink. This exposes bladeRF.m to Simulink, allowing the device to be used to receive, transmit, or operate full duplex.
bladeRF_rx_gui.m A configurable demo GUI that receives and plots samples in real-time.
bladeRF_rx_gui.fig GUI layout for bladeRF_rx_gui.m
bladeRF_XCVR.m A submodule of bladeRF.m that provides parameter-based access to RX and TX module configuration items.
bladeRF_VCTCXO.m A submodule of bladeRF.m that provides access to the VCTCXO trim DAC settings.
bladeRF_IQCorr.m A submodule of bladeRF.m that provides access to IQ DC offset and gain imbalance correction functionality.
bladeRF_StreamConfig.m An object that encapsulates bladeRF stream parameters.
libbladeRF_proto.m This file establishes the bindings and mappings to libbladeRF.

Supported Versions

These bindings have been tested on MATLAB 2014b and 2015b. Earlier versions may be compatible, but this is not guaranteed.

License

This code is distributed under an MIT License.

Trademarks

MATLAB and Simulink are registered trademarks of The MathWorks, Inc.