I wonder the way of reading data for some specific order.

2 次查看(过去 30 天)
for example, i have 36number txt. datas.
And I want to read 1,2,5,6,9,10....like this. jumping two things.
I used like below. I wonder how can it is made more simply..
Thank you so much.
for i = [1,2,5,6,9,10~~~~~33,34]

采纳的回答

Stephen23
Stephen23 2018-11-27
>> sort([1:4:34,2:4:34])
ans =
1 2 5 6 9 10 13 14 17 18 21 22 25 26 29 30 33 34

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by