From: Omar Ramos on 28 Jan 2010 13:45 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 31 Jan 2010 00:11 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.
|
Pages: 1 Prev: Can't load library Next: how to locate a string in a string cell? |