How can I use a time dependent function as input source for my Simulink Model?
100 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dominik Leifer
am 4 Apr. 2016
Beantwortet: Robin Henne
am 2 Jan. 2020
That is the defined function in my Matlab Function Block: The Result should be a curve the the Time t should be a interval e.g. from 0 to 10 How can I enter the time?
function i8_20 = fcn(t) %#codegen
ipeak=10000;
i8_20 = (ipeak/0.616)*sin(0.12*10^6*t)*exp.(-(t/(24.1e-06)));
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 4 Apr. 2016
You can use the clock block to get the time. http://www.mathworks.com/help/simulink/slref/clock.html
3 Kommentare
Vishnu Panchal
am 12 Jan. 2019
My stop time is 2 sec. Now, if i make use clock block it just gives me two steps. I want to reduce its step time to 100usec. How should I do it?
Weitere Antworten (1)
Robin Henne
am 2 Jan. 2020
you could try it with a triggered subsystem, which is triggered with a pulse generator with a period time of 100us
0 Kommentare
Siehe auch
Kategorien
Mehr zu Sources 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!