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aN;NaN NaN;NaN NaN;NaN NaN;NaN NaN]
What I want to do is for every column to find subsequently the first 1, untill the last zero before the following one:
Example1 = [1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0] Example1Ind = [900 901 902 903 ... ]
Then I want to look where these arrays overlap and where they are unique. How to do this?

Respuestas (0)

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Ag. de 2019

Comentada:

el 7 de Ag. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by