Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansichten (letzte 30 Tage)
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?

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by