how to operate on rows and columns of a matrix variable generated from SIMULINK output, using SIMULINK blocks?
8 views (last 30 days)
hi, i have been using the combination of MATLAB program and SIMULINK model for may project. but this will serve my purpose only if i work on offline data. i have been generating the data from the simulink model, saving to workspace and then processing the data (rearrange it to make it suitable to feed to ANN as input.)using matlab program(.m). now i want to avoid the necessity of the program by including suitable simulink blocks in my model. the program i have been using is given below.
ScopeData1(:,1)=; %removes 1st column(time line) as i dont need it.
save Normal_48 h
this is the code i have been using to rearrange the data stored in "ScopeData1" (size 321*4)in workspace by the simulink scope, in to another variable "h" (size 48*306). each column of "h" is combination of 3 sets of 16 data points, each set taken from taken from 16 data pints of last 3 columns of "scopedata1" in moving window format (i.e 1to 16, next 2 to 17...so on).
now my question is how to do all this in simulink model itself? without using any program. because i have to work on dynamic data which is being continuously fed to the system through data acquisition card. and i dont know how to switch between model simulation and program (if there is a way) continuously. moreover switching will increase the operation time, which i dont want.