This syntax was introduced in only one of the latest versions. Thus, there is no expectation that Octave will match this feature.
Your alternatives effectively implement dummy variables in one form or another. Here are common options that were used before ~ ββbecame an option.
[colA, colB, colC, colC] = textread('data.txt', '%d %d %s %d', 1); [colA, colB, ans, colC] = textread('data.txt', '%d %d %s %d', 1);
I like the latter, since ans is what Matlab uses anyway as a bit bucket.
user85109
source share