Filter löschen
Filter löschen

From file - Not defined time steps in .mat file (with examples)

1 Ansicht (letzte 30 Tage)
Zsolt
Zsolt am 23 Feb. 2014
Kommentiert: Zsolt am 24 Feb. 2014
For example, I have a .mat file with these data
but I have another file with more data and for simplify, from this file I have droped the identical values for example
time: 1 2 3 4 5 6 7 8 9 10
data: 1 0 1 1 1 1 1 0 1 0
my droped data-->
time: 1 2 3 8 9 10
data: 1 0 1 0 1 0
So my question is, how can I achieve the same data in skiped times like in before second. If I just skip them and run, the rusult is like this:
I would like to achieve something like shown with red arrows. Thank you.

Antworten (1)

Image Analyst
Image Analyst am 23 Feb. 2014
I don't know what this means: "achieve the same data in skiped times like in before second". Please clarify. Show your original data, your "dropped data", and what data you'd like to plot - all in arrays. Because to me it seems to say you dropped data (like in yellow) but you want to have it plot like your original data (in red), which is confusing me.
  1 Kommentar
Zsolt
Zsolt am 24 Feb. 2014
I write it simplyer :) In my file i have defined time and data ONLY at changing values i mean
time: 0 1 2 3 4 5 6 7 8 9 10
data: 0 1 2 3 3 3 3 4 4 4 5
is equivalent with this--> (my file)
time: 0 1 2 3 7 10
data: 0 1 2 3 4 5
So i want to keep signal from last defined time stamp, if i have not defined value for next time stamp

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Standard File Formats finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by