Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Zsolt
Zsolt le 23 Fév 2014
Commenté : Zsolt le 24 Fév 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.

Réponses (1)

Image Analyst
Image Analyst le 23 Fév 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 commentaire
Zsolt
Zsolt le 24 Fév 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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Standard File Formats dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by