How to change index value of logical array.
Show older comments
Hello everyone i hope you are doing well. I have the following logical array in which some values are 1 for example
the value for index 13 to 17 are 1.
- first i want to find where 1 values exist.
- then find minimum and maximum value where 1 exist.
- Then I want to change minimum and maximum index for example if 1 exist in 13 index the 50 were added to it and new index is 63 and new index for 17 is 67.
now the minimum value is 63 and maximum value is 67 where 1 value exist.
How can i do it in MATLAB
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!