The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
guiLoadModel.m File Reference


function guiLoadModel (var defaultFilename)
 Load a model from file, by showing the user a dialog for selecting the file to open. More...

Detailed Description

SUMO Lab Team
Copyright 2006-2018

This file is part of the Surrogate Modeling Toolbox ("SUMO Toolbox") and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the SUMO Toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the SUMO Toolbox please make reference to the corresponding publication:

Contact : - Signature [model filename] = guiLoadModel(defaultFilename)

Function Documentation

function guiLoadModel ( var  defaultFilename)

Load a model from file, by showing the user a dialog for selecting the file to open.

  • The dialog will open in the directory specified, if it exists.
  • If the specified path also contains a filename, that name will be entered in the name field.
  • If the specified path is invalid, the current directory will be shown.
  • If the load fails (e.g. user closes the dialog), the return parameters will be empty.
defaultFilenamedefault name of the file to load
Return values
modelthe loaded model, or [] if load failed
filenamethe file path of the loaded file containing the model


  • model = guiLoadModel('/home/')
  • [model filename] = guiLoadModel('D:\Workspace')