MATLAB

Use MATLAB’s .py prefix to download data from Nominal into MATLAB.

This method will work in MATLAB versions >= 2019b. A future version of this integration will not require a Python dependency and work on earlier MATLAB versions.

Dataset download

  1. Download Python if it’s not already installed on your machine
  2. Install the Nominal Python library
  3. In your MATLAB shell, type pyenv to inspect your Python version
  4. Search for your site-packages folder. In MATLAB, add it to your Python system path:
1py.sys.path().insert(2, 'C:\Users\...\site-packages');

Finally, download a Nominal dataset in your MATLAB environment:

1client = py.nominal.get_default_client();
2dataset = client.get_dataset('<INSERT DATASET RID HERE>');
3columns_to_query = py.list([{'aero.AOA'}]);
4df = dataset.to_pandas(columns_to_query);
5table(df)

Please see the Datasets page for other Dataset operations that are automatable with Python (like upload).

In older versions of MATLAB, the last line (table(df)) may not work. Instead, you will have to have to for loop over the column names exposed by the reference to df and build the MATLAB table manually in a for loop.

When you’re finished, your MATLAB session may look like the following:

matlab-screenshot