Matlab Simulink command Generator Code Question
2 views (last 30 days)
Show older comments
Emily Edwards
on 14 Feb 2023
Answered: Fangjun Jiang
on 14 Feb 2023
I am working on a matlab simulink question I need to create a code that would give me the following :Simulate the response of the system for a sequence of reference values equal to 0 rpm, 1000 rpm, 2000 rpm, 3000 rpm, 2000 rpm, 1000 rpm, and 0 rpm, separated by 1 s from each other. In simulink I have the time coming in and I need to create the code that would give me the reference values shown.
0 Comments
Accepted Answer
Fangjun Jiang
on 14 Feb 2023
Use the "Signal Builder" block. Signal, New, Custom... Specify time-value pairs.
0 Comments
More Answers (0)
See Also
Categories
Find more on Sources 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!