Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/68be3eb2-9a80-8004-aca9-962faf0f581f
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: You got it—here are two MATLAB functions especially handy for wearable applications. === You got it—here are two MATLAB functions especially handy for wearable applications. Since you referenced “MATLAB,” here are some relevant MathWorks links at the top for your quick reference: * Collect Data from Fitness Monitoring Devices – Demonstrates how to connect to BLE wearable devices (e.g., heart rate monitors) using functions like blelist, with steps for reading, processing, and plotting data. MathWorks<ref>{{cite web|title=MathWorks|url=https://www.mathworks.com/help/matlab/import_export/collect-data-from-fitness-monitoring-devices.html|publisher=mathworks.com|access-date=2025-11-10}}</ref> * HKQuantity (MATLAB File Exchange) – A community-contributed MATLAB function for importing comprehensive health-related data (e.g., heart rate, steps, VO₂ max, body metrics) from Apple Health export files. MathWorks<ref>{{cite web|title=MathWorks|url=https://www.mathworks.com/matlabcentral/fileexchange/119188-hkquantity|publisher=mathworks.com|access-date=2025-11-10}}</ref> ===== Function #1: blelist ===== What it does: Scans for nearby Bluetooth Low Energy (BLE) peripheral devices that are advertising, especially useful for wearables like heart rate monitors, smart shoes, fitness trackers, etc. It returns a table of discovered devices (with details like device name, address, signal strength RSSI). From this point, you can connect using ble or bleconnect, and read characteristics to access streaming data such as heart rate, cadence, or other sensor outputs. MathWorks<ref>{{cite web|title=MathWorks|url=https://www.mathworks.com/help/matlab/import_export/collect-data-from-fitness-monitoring-devices.html|publisher=mathworks.com|access-date=2025-11-10}}</ref> Why it's useful for wearables: * Enables seamless connectivity with real-time wearable sensors. * Forms the foundation of acquiring live physiological or activity data. * Acts as a starting point for building dashboards, logging modules, or streaming visualizations. ===== Function #2: HKQuantity ===== What it does: A MATLAB function from File Exchange that parses an Apple Health export.xml file (from Health app data) and extracts a broad range of health metrics. It supports over 100 categories including StepCount, HeartRate, VO2Max, RestingHeartRate, BloodPressure, OxygenSaturation, and more. MathWorks<ref>{{cite web|title=MathWorks|url=https://www.mathworks.com/matlabcentral/fileexchange/119188-hkquantity|publisher=mathworks.com|access-date=2025-11-10}}</ref> Why it's useful for wearables: * Allows offline analysis of rich wearable data sets aggregated by the Apple Health ecosystem. * Ideal for trend analysis, multi-day statistics, and correlating activity patterns (e.g., step counts vs. heart rate). * Great for visualizations, feature extraction, or feeding into machine learning pipelines. ===== Summary ===== | Function | Purpose | Typical Use Case | | ---------- | --------------------------------------------------------------- | ----------------------------------------- | | blelist | Discover and connect to BLE wearable devices | Real-time data acquisition and streaming | | HKQuantity | Parse and extract health metrics from Apple Health export files | Historical data analysis and trend mining | ===== Bonus Tip: Pairing Both in a Workflow ===== # Real-time mode: Use blelist → connect → read data → process and display live metrics (e.g., heart rate zones). # Historical mode: Export wearable data from Apple Health → use HKQuantity to import into MATLAB → analyze multi-day trends, fitness progress, or detect anomalies. Let me know if you'd like guidance on particular wearable types (e.g., PPG wristbands, IMUs) or advanced techniques like feature extraction, signal filtering, or machine learning workflows.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)