what is the best way to perform multiple calculation in simulink project ?

Hello
I am a beginner in simulink. I have very simple circuit that I want to simulate like this
I wish to enter multiple values for current source and measure the voltage across the 1kOhm resistor
what is the best way to do that ? is there a way to create this circuit in matlab script and store my wanted variables or can I do it using simulink itself ?
I hope this question is not repeated since I am trying to figure out suitable name for the function I want to know to search before asking but I didn't get it.

Answers (1)

To easily change the value of the current source you can use a Controlled Current Source instead. To measure the voltage you can use a Voltage Sensor, a Probe block, or Simulation Data Logging.

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Asked:

on 28 Feb 2019

Answered:

on 7 Mar 2023

Community Treasure Hunt

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

Start Hunting!