Store one vector range inside another
1 ビュー (過去 30 日間)
表示 古いコメント
How to store the values of vector x, say from x(50,1) to x(100,1)?
I tried in the following way, but it didn't work.
RES_BLOCK_C=X(385,1):X(1921.1)
Ans:
RES_BLOCK_C = 0 1
0 件のコメント
回答 (2 件)
Jonas
2022 年 7 月 23 日
put the : range expression in the braces to select a range if a vector:
vec=1:10
part=vec(5:8)
0 件のコメント
参考
カテゴリ
Find more on Elementary Math 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!