chop a 1-D vector

Risposte (2)

ScottB
ScottB il 28 Giu 2012

0 voti

z = rand(1000,1);
a = size(z)
z(1:2) = [];
b = size(z)
K E
K E il 28 Giu 2012
Modificato: K E il 28 Giu 2012

0 voti

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.

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Richiesto:

il 28 Giu 2012

Community Treasure Hunt

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

Start Hunting!

Translated by