I have a row vector consisting of 200 engine speeds. I want to feed one value at a time into an alternator block. How do I do it?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Asifuz Zaman
am 20 Jul. 2018
Kommentiert: Birdman
am 20 Jul. 2018
How do I feed one value at a time from a pool of data. I tried using the matlab function block but it feeds all the data together rather that feeding it one at a time.
0 Kommentare
Akzeptierte Antwort
Birdman
am 20 Jul. 2018
Use From Workspace block. Define your data at your workspace, and also define a time vector. These two vectors should be nx1, same length and then put them in a new vector called Data, which is nx2. Then use this Data variable in From Workspace block. Hope this helps.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!