How mathworks/matlab-mobile-fitness-tracker works
Project type and purpose
• It is not a microservices application or a traditional client-server web app, but rather a data-acquisition & processing pipeline built on MATLAB Mobile and MATLAB Online.
File structure
• Top-level files:
• ExampleModel.mlx – the MATLAB Live Script that orchestrates the workflow
• timeElapsed.m – helper function for timestamp conversion
• ExampleData.mat, ActivityLogs.mat – pre-collected sensor data
• README.md, Instructions.pdf, GradingRubric.pdf – documentation
• No nested “frontend/backend” directories—this is a single-pipeline project with external devices (phones) and a cloud environment.
README for additional insights
• The README explains the workflow:
a. Use MATLAB Mobile on your phone to collect data
b. Store it in .mat files on MATLAB Online
• No mention of external databases or third-party APIs beyond MATLAB’s cloud.
Main components and their interactions
a. Device & Sensors (Smartphone accelerometer, gyroscope, etc.)
b. MATLAB Mobile App (client)
c. MATLAB Cloud Workspace (project folder in MATLAB Online)
d. Data Files (ExampleData.mat, ActivityLogs.mat)
e. Analytics Engine (ExampleModel.mlx Live Script + timeElapsed.m)
f. Outputs (Plots, tables, metrics generated by the Live Script)
g. Documentation (instructions and grading rubric—auxiliary, no runtime role)
Relationships / data flow:
1. Sensors → MATLAB Mobile App
2. MATLAB Mobile App → (uploads) → MATLAB Cloud Workspace
3. Analytics Engine reads Data Files + invokes timeElapsed.m
4. Engine processes data → generates visualizations & metrics
5. User views results in MATLAB Online / downloads outputs
Architectural patterns & design principles
• Pipeline‐style data flow: acquisition → storage → processing → visualization
• Clear separation of concerns:
• Acquisition layer (mobile + sensors)
• Storage layer (MAT‐files in cloud)
• Processing layer (Live Script + helper functions)
• Presentation layer (plots & tables in Live Script UI)
Relevant technologies / frameworks
• MATLAB Mobile (iOS/Android client)
• MATLAB Online (cloud compute environment)
• MATLAB Live Scripts (.mlx) and .m functions
• MAT-file format for data serialization
Detail
• That both ExampleData.mat and ActivityLogs.mat feed into the Live Script
• Optionally, annotate that users can edit/run the Live Script in MATLAB Online