How do I find consecutive number on (0,1) matrix and for how arrays did I have the number 0 before changing
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Alex
am 19 Apr. 2018
Beantwortet: Walter Roberson
am 20 Apr. 2018
Hello everyone, I'm trying to solve a unit commitment problem and in order to do that I need to find the number of periods a unit has been offline prior to startup. For example I have a matrix like [0; 1; 1; 0; 0; 0; 0; 1] and I need to calculate when did 0 change to 1(in which array) and for how many arrays did I have the number 0 before changing to 1. Thanks a lot in advance
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!