Main Content

getSupportedFileTypes

Return file type of signals in spreadsheet file

Since R2024b

    Description

    filetype = getSupportedFileTypes('filename') returns supported file types for the specified file, filename, to import data.

    example

    Examples

    collapse all

    Return the file type of the signals in the MAT file MatlabTimeSeries.mat.

    filetype = getSupportedFileTypes('MatlabTimeSeries.mat')
    filetype=1×2 table
         SupportedFileTypes                                               Description                                          
        _____________________    ______________________________________________________________________________________________
    
        "Simulink.io.MatFile"    "Supports MAT-files containing data formatted in Simulink loading and logging signal formats."
    
    

    Input Arguments

    collapse all

    File name, specified as a character vector or string. The file can be any supported file type.

    Example: ThreeInportModelData.xlsx

    Data Types: char | string

    Output Arguments

    collapse all

    File types of signals contained in filename, returned as a table of each file type in filename.

    Version History

    Introduced in R2024b