Filter löschen
Filter löschen

chop a 1-D vector

2 Ansichten (letzte 30 Tage)
Nadia
Nadia am 28 Jun. 2012
How do I cut the first 2 samples of 1-D vector has 1000 samples in Simulink?

Antworten (2)

ScottB
ScottB am 28 Jun. 2012
z = rand(1000,1);
a = size(z)
z(1:2) = [];
b = size(z)

K E
K E am 28 Jun. 2012
Bearbeitet: K E am 28 Jun. 2012
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.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by