How can I calculate value of a signal (using MATLAB Function block of Simulink) between two time instants i.e. between 5.04 s to 5.25 s?
1 Ansicht (letzte 30 Tage)
Actually I have a signal (figure attached) which is a frequency signal and that signal would be input to the " MATLAB Function block of Simulink" . So this input signal is not a vector, it is just a one dimension signal of 50Hz value and the value changes at 5 seconds because there is a disturbance event at 5 seconds. So eventually , I want to find the value between 5.04s to 5.25s (which is actually the rate of change of this signal between 5.04s to 5.25s). Also I don't know how many samples do I need to take between 5.04s to 5.25s in order to have accurate rate of change of this signal. Can anyone please guide or anyone have any idea how to do this using MATLAB Function block of the Simulink?