poslog
R2026bReturn logged position data from mobile device sensor
Description
Add-On Required
To use this function for accessing mobile device sensors remotely from MATLAB® installed on a desktop or laptop computer, you must also install either MATLAB Support Package for Apple iOS Sensors or MATLAB Support Package for Android® Sensors. For more information, see Get and Manage Add-Ons.
[ returns the logged position data for one or more of these
variables, where lat, lon, timestamp, speed, course, alt, horizacc]
= poslog(m)m is the name of the
mobiledev object that acquires the sensor data. The output
variables are each an N-by-1 vector of latitude, longitude, timestamps, speed,
course, altitude, and horizontal accuracy, where N is the number of samples acquired
during the capture duration. Position data is obtained from GPS, Wi-Fi, or the
cellular network, using whichever is available.
Examples
Output Arguments
Version History
Introduced in R2015a