For loops in stateflow
Mostra commenti meno recenti
I'm not understanding how for loops are expanded in state flow. I the chart below I'm attempting to break a 32-bit value into 8, 4-bit chunks and store them into an array. I'm expecting bits 32-29 to go in buf(1), bits 28-25 in buf(2), bits 24-21 in buf(3) and so on. However, it seems that bits 1-4 get stuffed into each element of buf. Why is this not working properly and what is the correct way to implement something like this?

Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Decision Logic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!