Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how do I get a signal worspace block to give each point at ech time step not the total signals for each time step

조회 수: 5 (최근 30일)
What I would like to do is read a signal of 100000 pts in length but at each time step read in one pt at a time so the conditional checking eml block looks at one point (pt) every time step not 100000 at every time step.
Currently I am reading in 100000 over 0.001 time steps for 10 seconds (10 kHz signal) but instead for each time step its reading in 100000 pt signal and hence at the end the workspace saved variable is 100000 by 100000 what I need is the diagonal of that. I have tried many things using rate transition blocks, buffers even a demux to look at one channel and terminate the other 99999….but the 1st channel only gave me the 1st point recorded for the duration of the simulation hence: 100000 pts of the 1st original point! I used a signal to workspace block (this is the closest) but it gave me a 1x2x100000 ......what i need is a 2 x 100000 however the squeeze doesn't work as I think the singleton needs to be in the middle. With that input block I had to use a structure with a time element. What about for each block and some way to select the individual elements? I am lost and this I feel is pretty fundamental to signals ……..any help most appreciated! Surely should be easier?

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by