chop a 1-D vector
이전 댓글 표시
How do I cut the first 2 samples of 1-D vector has 1000 samples in Simulink?
답변 (2개)
ScottB
2012년 6월 28일
0 개 추천
z = rand(1000,1);
a = size(z)
z(1:2) = [];
b = size(z)
If you want to select the third through last values of your vector within Simulink, you can use the Selector block. If you want to remove the first two elements prior to importing the data into your Simulink model, see ScottB's answer.
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!