jak9
Junior Member level 2
hi everyone,
i have defined a vector of continuous state of current values in a workspace. As it is a continuous state the frequency changes everytime say after some cycles. So what i want is to calculate the frequency corresponding to the current value in the vector.
for e.g. the vector is
Ibatt=<2*90000> where the first row represents the time value and the second row represents the corresponding current value.
uptil now what i did is i used a simin block from the simulink library and joined the output port to the spectrum scope but i get a error that continuous states cannot be used so i added a zero order hold block in between and when i open the scope i cant see the frequency value with respect to each value of the vector.
So please help me in achieving this.
Thanks in advance.
i have defined a vector of continuous state of current values in a workspace. As it is a continuous state the frequency changes everytime say after some cycles. So what i want is to calculate the frequency corresponding to the current value in the vector.
for e.g. the vector is
Ibatt=<2*90000> where the first row represents the time value and the second row represents the corresponding current value.
uptil now what i did is i used a simin block from the simulink library and joined the output port to the spectrum scope but i get a error that continuous states cannot be used so i added a zero order hold block in between and when i open the scope i cant see the frequency value with respect to each value of the vector.
So please help me in achieving this.
Thanks in advance.