How to feed timeseries data to parameter

3 views (last 30 days)
pratik bhadange
pratik bhadange on 22 Aug 2018
Answered: Aquatris on 23 Aug 2018
Is there any way to feed timeseries data available in matlab workspace to parameter present in model.
Problem Statement: - I want to update parameter loaded in workspace at every iteration till stop time.
[[For variables / signals we can do it at root level using configuration settings and simulink data objects]]

Answers (1)

Aquatris
Aquatris on 23 Aug 2018
One way is to define the parameter as a signal (if the parameter is in the gain inside a gain block, change the gain block to product block and make one of the inputs the parameter). Then use From Workspace block to feed the "parameter" in to the product block. If the parameter is used in more complex operations, Matlab Function block can also be used.

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!