User_L33t
User_L33t

Reputation: 1

Using Textscan to read a block

This seems like a pretty basic question and setup but I am having issues because I can't find an example that really does what I need and I find the matlab help stuff to be a bit esoteric sometimes.

File setup:

MiscDataAbove

MyTargetData_0
{
Position     1.1 2.2 3.3;
Velocity     001;
Altitude     001;
StartTime    001;
StopTime     001;
}

MiscDataBelow

I want my matlab code to find the "MyTargetData_0" line, and read all of the data below starting with "{" and ending with "}" into a variable with the following format:

Position | 1.1 | 2.2 | 3.3
Velocity | 001
etc..
etc..

Any help would be fantastic. Thanks all!

Upvotes: 0

Views: 59

Answers (0)

Related Questions