Student Support Forum: 'Eliminating extra outer curly brackets' topicStudent Support Forum > General > "Eliminating extra outer curly brackets"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Salvo 11/23/12 6:00pm Does anyone know how to eliminate my extra unwanted brackets? I get this output: {{Subscript[n, 1], 0, 2}, {Subscript[n, 2], 0, 2}, {Subscript[n, 3], 0, 2}, {Subscript[n, 4], 0, 2}, {Subscript[n, 5], 0, 2}, {Subscript[ n, 6], 0, 2}, {Subscript[n, 7], 0, 2}} I need: {Subscript[n, 1], 0, 2}, {Subscript[n, 2], 0, 2}, {Subscript[n, 3], 0, 2}, {Subscript[n, 4], 0, 2}, {Subscript[n, 5], 0, 2}, {Subscript[ n, 6], 0, 2}, {Subscript[n, 7], 0, 2} so no extra brackets. The code is at the bottom. Thanks (listofindices = {}; For[s = 1, s <= 3, s++, listofindices = Append[listofindices, {Subscript[n, s], 0, 3 - 1}]]; For[s = 3 + 1, s <= 7, s++, listofindices = Append[listofindices, {Subscript[n, s], 0, 5 - 3}]]); listofindices URL: satesoro@gmail.com,

 Subject (listing for 'Eliminating extra outer curly brackets') Author Date Posted Eliminating extra outer curly brackets Salvo 11/23/12 6:00pm Re: Eliminating extra outer curly brackets Nasser M. Ab... 11/24/12 4:57pm Re: Eliminating extra outer curly brackets Bill Simpson 11/24/12 6:35pm Re: Eliminating extra outer curly brackets yehuda 11/25/12 07:50am Re: Re: Eliminating extra outer curly brackets Salvo 11/27/12 04:22am Re: Eliminating extra outer curly brackets yehdua 11/28/12 01:24am
 Next Comment > Help | Reply To Topic