How can I use FROM WORKSPACE CYCLIC REPETITION in Simulink?
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fernando Beltrán
am 10 Jun. 2016
Beantwortet: Preeti Sar
am 28 Mai 2019
Hello, I have a question. I want to use as input a signal repeating "n " times.
I have defined the input as follows:
entrada.time = [ 0 1 2 3 4 5 6 ] entrada.signals.values = [ 0 5 3 8 6 2 0 ]
I Know how to use the block "repeting sequence" , but I've seen that in the block From Workspace there is an option that is "Cyclic repetition", but me a message that says " The cyclic option is supported only When the data is in the form appears with a structure of an empty vector time . "
What I have to change my input signal?
Thank you very much
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 10 Jun. 2016
When you choose cyclic option, set your variable in the bloc "from worskspace" like below:
y.time=[ ]
y.signals.values=[ 0 5 3 8 6 2 0 ]'
y.signals.dimensions=1
Uncheck the option: "Interpolate data"
Don't forget to set the sample time, in your case it's 1
2 Kommentare
Azzi Abdelmalek
am 11 Jun. 2016
In this case, try another solution, the repeating sequence for example.
Weitere Antworten (1)
Preeti Sar
am 28 Mai 2019
Save your input data to workspace first and save it as a structure without time option.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!