I am having a model in simulink uploaded at:
In the first iteration the model should take value from matlab mfile and calculate error for Pid as e=r-i where 'i' is the value taken from matlab mfile but after that it should take feedback and calculate the error as e=r-y where 'y' is the value of feedback from space state. How can I do that in simulink. Any guidance?
step1:Initialize all i/p data in m-file & variable 'i'
step2: use 'sim()' command to run your model
step3: store the value of 'y' in baseworkspace by 'To workspace' block from model
Play games and win prizes!Learn more