How can I take valid data points only and plot them?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've imported a set of data with some invalid data points which I've already seperated. I already have a logical array of the valid data points (it looks something like ' valid=[0 0 1 1 0] ' ). Now I need to recreate the graph with only the valid points. However, when I try to use the logical array as the index of the data, it gives me an error because the matrix sizes don't match.
The original graph and data (with invalid points still present):

My attempt on plotting the graph with only valid points:

I've also tried:
plot(serial_dates(Wo1),W(Wo1))
however, the same message still pops up.
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!
