Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
Find sorrunding elements and element from an array
- create a block around true(1) with a size of 5
- get the indices like 5,6,7,8,9 and data 0 0 1 0 0
25 commentaires
- include the nearby pixel as well in the block of 5 elements
- if first pixel 1 then include next 4 elements
- if end pixel 1 then include previous 4 elements
- Block is needed as an input to process the polynomial vector.
- movmax makes the poly bit as 1 .. This is incorrect since it over write poly error information
- A block can start from 1 bit as 1 and trail bit either 0/1 .
- In case of variable block/s, you know the CRC points in a data set then why re-run same data. This is using more memory (buffer) and processs time. I don't understand why this should not be concern
- bit reverse
- padd to sufice the block which is a polynomial
- short polynomial
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/393978/image.png)
- The first / every row must start with error bit location followed by rest of bit. i.e. leading coefficeint of a the polynomial must be 1
- Tail bits of a polynomial can be any 0/1 in a block size( we get in the array). Bitreversal is done for 5,6 to 6,5
- Once a error bit is processed in a block , we don't need to processs the bit again. Block window should slide further in search of next index / error bit to make a polynomial of fixed size
- Minimum polynomial size i.e. block of 5 is reasonable .
- polynomial size should not change during the execution.
Réponse acceptée
11 commentaires
- What is the case where you had indexes 1-9?
- What do you expect to happen if you have 1's that are closer than 5 elements?
- Is the solution to just add 2 to all the indexes?
- Area you saying that bwareaopen() is a function that is explicitly not included in the MATLAB Coder Toolbox?
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)