select elements from matrix based on multiple range values

前端 未结 0 1858
盖世英雄少女心
盖世英雄少女心 2021-02-04 08:15
a = 1:20;
b = [2,5;12,16];

I\'m looking for a way to extract the elements in a within the range of b rows. I tried



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题