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 日間)
James Griffin
James Griffin 2015 年 1 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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