File Exchange

image thumbnail

MATLAB to iPhone Made Easy example files

Use MATLAB Coder to generate C code and integrate it into an iPhone/app using Apple’s XCode IDE

12 Downloads

Updated 07 Jul 2016

View License

These are the example files used in the "MATLAB to iPhone and Android Made Easy" webinar:
http://www.mathworks.com/videos/matlab-to-iphone-and-android-made-easy-107779.html
Includes files and instructions to use this workflow. You will need to download the GLGravity example from Apple's website (link is in the ZIP-file).
Example files tested with R2013b, R2014a, and R2015b, and likely works with any version of MATLAB Coder since it does not require any special files/functions. The workflow only requires MATLAB and MATLAB Coder, though you will need the appropriate toolboxes to generate code from toolbox functions (i.e. DSP System Toolbox).

Watch the webinar to learn how to generate readable and portable C code from your MATLAB algorithms using MATLAB Coder, and then integrate it into an iPhone or iPad app using Apple’s XCode IDE. The app can then be executed on the iOS simulator or downloaded onto a physical iPhone or iPad.

Cite As

MathWorks MATLAB Coder Team (2019). MATLAB to iPhone Made Easy example files (https://www.mathworks.com/matlabcentral/fileexchange/48954-matlab-to-iphone-made-easy-example-files), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Ram

Bill Chou

Deb Sarkar: You'll need to have DSP System Toolbox. Did you execute run_demo.m first before executing make_xyz_filter.m (as mentioned in README.txt)?

Deb Sarkar

cannot generate the C code from the matlab code provided. It's giving error when I tried to run this make_xyz_filter.m

1. dsp.BiquadFilter is undefined
2. hFilter is also undefined. First arguemnt to a local variable determines its class.

Updates

1.3.0.0

GLGravity now works in Xcode 7 and newer, and with iOS 8 and newer.

Tested with Late 2013 MacBook Pro 15" running Mac OS X 10.11 El Capitan, Xcode 7.3, and iPhone 6S Plus running iOS 9.3.2.

1.2.0.0

Updated for R2015b and Xcode v7 beta with iOS 8.4.

1.1.0.0

Minor text changes to better describe the entry.

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux