File Exchange

image thumbnail

Star Wars API Reader

version (3.22 MB) by Heather Gorr
Read data from the Star Wars API (SWAPI)


Updated 06 Dec 2019

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Star Wars API (SWAPI) provides open data to explore and analyze the universe:
You can read this data into MATLAB with the function swapiread. The function imports the data by record or by collection and converts the data to a MATLAB-friendly format for analysis.

Cite As

Heather Gorr (2020). Star Wars API Reader (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Updated graph example

Updated graph example to Live Script

Added graph example, helper function, and tests

Updated example to show another character's height.

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