Create a new vector with all values between "Start" and "Stop" arrays.
5 ビュー (過去 30 日間)
古いコメントを表示
Early Social Development Lab Lab
2021 年 2 月 8 日
編集済み: Manash Sahoo
2021 年 2 月 8 日
Hello, I have created a stop and start cell array to select a time frame of usuable data. How can I create an array that has all of the values between the start and respective stop cells (or numbers - happy to change the format)? Thank you in advance for your assistance.
Example:
Start = [1, 30, 70, 100] Stop = [10, 45, 75, 150]
I want one array that has all values between start and stop e.g., 1:10 30:45 70:75 100:150
0 件のコメント
採用された回答
Manash Sahoo
2021 年 2 月 8 日
編集済み: Manash Sahoo
2021 年 2 月 8 日
You could store them in a cell array:
newarr={};
Start = [1, 30, 70, 100];
Stop = [10, 45, 75, 150];
for i = 1:size(Start,2)
newarr{i} = Start(i):Stop(i);
end
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!