MATLAB Answers

How to simulate a variable DC load using a variable from workspace?

20 views (last 30 days)
Nanda Kishor Panda
Nanda Kishor Panda on 17 Dec 2020
I want to model a variable DC load (kW) using the values from a variable stored in my workspace. Could anyone help me on how to start with this?


Sign in to comment.

Answers (1)

Jemima Pulipati
Jemima Pulipati on 19 Dec 2020
From my understanding, you want to use the data defined in the MATLAB's workspace while running the simulation.
You can use the 'From Workspace' block to load data from the workspace.
Here are some documentation links which can help you get started:


Nanda Kishor Panda
Nanda Kishor Panda on 22 Dec 2020
Thank you for your answer.
I have used the "From Workspace Block" and am able to plot the values using a scope sucessfully. The problem I am facing is how to use this values for the parameters of a simscape block like resistor values.

Sign in to comment.




Community Treasure Hunt

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

Start Hunting!

Translated by