%% Read Six Numbers Into Two Variables
% Create a character vector containing numbers separated by spaces. Read six numbers into two variables Use the format specifier %f twice to apply the same formatting to each output. The number of formats specified must match the number of outputs.

str = '0.41 8.24 3.57 6.24 9.27 3.29';
[a, b] = strread(str, '%f %f')

% Copyright 2020 The MathWorks, Inc.