2

I have Simulink moodel, and it has a block parameter , which can be set as (in Matlab)

set_param('pth/_dat1', 'fileName', 'data1.wav');

But, this only works if model is first open by typing model name on matlab script.

Is it possible to set it without opening the Simulink model GUI,(like e.g we can change something in visual studio project by manipulating xml rather than GUI)

1 Answer 1

4

See load_system, which from the doc,

load_system('sys') loads sys, where sys is the name of a
Simulink® model, into memory without making its model window visible.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.