pwLoadConfigFromMFunction(filename) Loads the configuration from a valid PottersWheel configuration file, which is constructed as a Matlab function returning a config struct. It is ensured that missing fields are added by calling pwEnsureValidConfig internally.