How to duplicate rows while skipping/excluding specific rows?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
What I have:
I have a cell array:

That second column is the data that is nested into the first column.
What I need:
I need each number (that is not 1000) duplicated. These numbers correspond to data in another matrix, so the Indicies MUST match. I'm at a loss.
My current attempt:

The final matrix PRN should be the same size as A (so the indexes match). It is missing 1173 rows of data. My current theory is that there are other blank lines in the data that (for god knows what reason) don't need to be deleted.
This is a piece of a function that is trying to parse data from many many files. So I hope I gave you enough information to work off of.
Thanks for any help, ideas or refrence materials that you might send my way.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!