Prev: Error message
Next: Read String To Structure
From: Andy on 21 Jun 2010 15:10 "Adam " <abc5(a)ubc.ca> wrote in message <hvo77p$nd8$1(a)fred.mathworks.com>... > Hi, > > I have a text box where something like > > [2 3 5] [c] [c] [c] [5 7 8 9] [c] > > Is the input. These are intended to be structures specifying whether a variable is continuous or discrete (the values being the discrete steps). > > I would like to take this contents and put in a structure so that I have a 3D array. The issue is that they are from a textbox so I get something like '[2 3 5] [c] [c] [c] [5 7 8 9] [c]' as a string. I'm looking for an easy way to put these structures into one big structure. Is there a better way then manually finding the index of '[' and ']' and looking for what is in between? > > Thanks for any response. Could you post what you would expect the resulting structure to look like with that string as input?
|
Pages: 1 Prev: Error message Next: Read String To Structure |