Dear Antonio,
Quote:Thankyou very much Sergei. By the way, is it possible in hyphy to identify string patterns? say, " P1_1_" in strings such as "P1_1_1" or "P1_1_5"?
Yes, you can use regular expressions matching for strings. Take a look at the documentation Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to
for the
$,^,% commands to match patterns.
If you want to locate all defined variables matching a regular expression, use something like
Code:GetInformation(vars,"^P1_1_[0-9]+");
fprintf (stdout, "\nMatched ", Columns (vars), " variables\n");
for (k=0; k<Columns (vars); k=k+1)
{
fprintf (stdout, "Variable ",k+1," : ", vars[k], "\n");
}
Here,
vars will be a row vector of variables which matched the description.
Cheers,
Sergei