Main Content

sim3d.maps.Map.download

Download maps from the server

Since R2022b

    Description

    example

    sim3d.maps.Map.download(Scene) downloads the map Scene from the server.

    Examples

    collapse all

    This example shows how to download and access the Suburban scene map from the Simulation 3D Scene Configuration block.

    To begin, check the maps available in the server.

    sim3d.maps.Map.server
            MapName                        Description                    Version    MinimumRelease    ReleaseUpdate
        ________________    __________________________________________    _______    ______________    _____________
    
        "Suburban scene"    "a suburban area beyond the city's border"      "1"         "R2022b"           "[]"     
    

    Download the Suburban scene from the server.

    sim3d.maps.Map.download('Suburban scene')
    Map is susccesfully downloaded and is up-to-date

    Check if the downloaded maps are available in your local machine.

    sim3d.maps.Map.local
            MapName                        Description                    Version    MinimumRelease    ReleaseUpdate
        ________________    __________________________________________    _______    ______________    _____________
    
        "Suburban scene"    "a suburban area beyond the city's border"      "1"         "R2022b"           "[]"     

    Add the Simulation 3D Scene Configuration block to your model.

    Scene configuration block

    Open the block mask and select the suburban scene from Scene name.

    Run the model.

    Suburban scene view

    Input Arguments

    collapse all

    Name of the map being downloaded from the server, specified as a string or character array. Maps are downloaded in the default folder that is added to MATLAB search path at startup.

    Maps are stored by user profile. For multiuser setup with a single MATLAB installation, the maps will be downloaded multiple times.

    If a new version of the map is available on the server, you will see a warning message asking you to download the map again to get the recent version.

    Version History

    Introduced in R2022b