Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Initialize array and then using a feedback node to replace elements
Topic Started: Sep 15 2017, 08:07 AM (56 Views)
* jesuslewis

Hello Guys,

I have a typical problem. I need to store values in a 1-d array with 7 elements. I want to start with a all zero element array. I then start sending values and indices one by one so that the value is inserted into array and is stored. My problem is, when I start with an all zero array ,what happens is whenever i send a value it replaces a zero at the correct index but it doesnt store that value for the next iteration as the zero array sets the array to zero again. So only one element changes in the array all the time. I dont want it like that. Infographic Examples are more eye-catching than printed words and visual representation of data and knowledge. Once started i want all my values stored in the corresponding index unless until a value with the same index replaces that. here is my attempt in jpg format.I tried to insert a zero array which runs only once in a while loop and then connect the replace array in feedback mode so that the insertion of zero elements happens only once.

Thanks
Offline Profile Quote Post
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Feedback · Next Topic »
Add Reply