My simulink model seems to not receiving proper variables from workspace or not returning proper value to workspace.
Show older comments
I have following problem. I made simulink model, it's simple AC-DC rectifier. Everything works proper until I want to do some research how various value of inductance affects current. I implemented a script, that changes value of inductance in for loop. These values are changing properly because I tested it. After change of inductance value, I'm executing simulink model by function sim() and then I want to get info about current from simulink model, plot it to figure and go to next value of inductance. Instead of this, I'm getting exact values. I was tried to save workspace variables to separated files, and I realised, these values was always the same. So, my question is, how to save data from simulink model with various values of inductance.
4 Comments
Fangjun Jiang
on 13 Nov 2020
a possible mix of base workspace and function workspace. In any case, you need to show some example code and model to debug the problem.
Wiktor Jachym
on 13 Nov 2020
Wiktor Jachym
on 13 Nov 2020
Wiktor Jachym
on 13 Nov 2020
Edited: Wiktor Jachym
on 13 Nov 2020
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!