MATLAB Answers


Altering Resistance Parameters during Simulation in Simulink

Asked by Nixon
on 16 Jan 2013

Hi all,

I am having a similar problem to this thread (<>) in which I would like to alter the resistance of my circuit during simulation. I have tried most of the methods suggested in it but to no avail, I am not entirely sure how to implement the clock/function method. Do I require an output to the function, and do I need to call the function within my main m-file? This is what I have written so far:

function Rchange(time)
  if time > 20
  elseif time > 40

Also, I am unable to use the variable resistor which would seem like the most logical solution to my problem as I am running SimPowerSystems and do not know how to convert signals using the s-ps converters and reconnecting it back to my circuit.

Any help will be appreciated.




No products are associated with this question.

0 Answers

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!