From: Omar Ramos on
Hi, I am trying to use the simulink Index Vector block in my design to call a 1x100 vecctor. I am using a counter as the trigger. But I can not access the fist element of the vector.

Example
vector = [ 1 2 3 4 5]

If I use the Index Vector to the only values i will get are 2 through 5. I can not access the first element.

Any help will be greatly appreciated.

Thanks.
From: Saurabh Mahapatra on
Hi Omar,

Are you running the counter from index=1 onwards? Try running it from index=0 and you should be able to access the first element.

Thanks,

Saurabh

"Omar Ramos" <christian.o.ramos(a)navy.mil> wrote in message <hjslvk$k8m$1(a)fred.mathworks.com>...
> Hi, I am trying to use the simulink Index Vector block in my design to call a 1x100 vecctor. I am using a counter as the trigger. But I can not access the fist element of the vector.
>
> Example
> vector = [ 1 2 3 4 5]
>
> If I use the Index Vector to the only values i will get are 2 through 5. I can not access the first element.
>
> Any help will be greatly appreciated.
>
> Thanks.