Extract indices of vector?

3 次查看(过去 30 天)
Hello all, In my research work, I came across a stiuation where I want to extract indices of filled positions of a coulmn vector.
For e.g., B is a vector of dimension 8 X 1 wherein any two rows are non-zero while others are zero.
Then how can we extract the indices of non-zero row in MATLAB.
Any help in this regard will be highly appreciated.

采纳的回答

Stephen23
Stephen23 2023-10-23

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by