From: Jay on 11 Apr 2010 22:52 Hi, I have a text file within which are some constant definitions like this: Constant 'A' 145.3 Constant 'B' 1e5 etc. I'd like to find the string "Constant 'A'", then read the number that follows. I've been experimenting with regexp and can find the index of where the string starts, but am not sure how to grab the number that follows as it may not always be the same length. Thanks.
|
Pages: 1 Prev: Putting an image on push button Next: why isn't matlab picking these values |