

Parts of str are considered comments and will be skipped. The behavior of strread can be changed via property-value (default) read all of the string until the end. Optional numeric argument format_repeat can be used for This will do if str contains only numeric fields. Output argument and likewise for the rest of the specifiers.īy default, format is "%f", meaning that numbers are read from Parsed word corresponding to the first specifier are returned in the first In addition the format may contain literal character strings these will be where N is an integer > 1.įor %f, format specifiers like %N.Mf are allowed. Optional width can be specified as %Ns, etc. The word is parsed as a number and converted to int32.įor %s and %d, %f, %n, %u and the associated %*s … specifiers an The word is parsed as a number and converted to double. It may contain any combination of the following specifiers: The string format describes how the words in str should be More words than specifiers, the process is repeated until all words have Specifier, the second to the second specifier and so forth. The string str is split into words that are repeatedly matched to the Function File: = strread ( str) Function File: = strread ( str, format) Function File: = strread ( str, format, format_repeat) Function File: = strread ( str, format, prop1, value1, …) Function File: = strread ( str, format, format_repeat, prop1, value1, …)
